We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec5b44 commit 45005a5Copy full SHA for 45005a5
packages/astro/src/core/session.ts
@@ -375,7 +375,11 @@ export class AstroSession<TDriver extends SessionDriverName = any> {
375
return this.#storage!;
376
}
377
// Use fs-lite rather than fs, because fs can't be bundled. Add a default base path if not provided.
378
- if (this.#config.driver === 'fs' || this.#config.driver === 'fsLite' || this.#config.driver === 'fs-lite') {
+ if (
379
+ this.#config.driver === 'fs' ||
380
+ this.#config.driver === 'fsLite' ||
381
+ this.#config.driver === 'fs-lite'
382
+ ) {
383
this.#config.options ??= {};
384
this.#config.driver = 'fs-lite';
385
(this.#config.options as BuiltinDriverOptions['fs-lite']).base ??= '.astro/session';
0 commit comments