UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

21 lines (20 loc) 492 B
import { builtinDrivers } from "unstorage"; const unstorageDrivers = Object.fromEntries( Object.entries(builtinDrivers).filter(([name]) => !name.includes("-")).map(([name, entrypoint]) => [ name, name === "fs" ? (config) => ({ entrypoint: builtinDrivers.fsLite, config: { base: ".astro/session", ...config } }) : (config) => ({ entrypoint, config }) ]) ); const sessionDrivers = unstorageDrivers; export { sessionDrivers };