mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
1ec5b44ce3
commit
45005a581d
1 changed files with 5 additions and 1 deletions
|
@ -375,7 +375,11 @@ export class AstroSession<TDriver extends SessionDriverName = any> {
|
||||||
return this.#storage!;
|
return this.#storage!;
|
||||||
}
|
}
|
||||||
// Use fs-lite rather than fs, because fs can't be bundled. Add a default base path if not provided.
|
// Use fs-lite rather than fs, because fs can't be bundled. Add a default base path if not provided.
|
||||||
if (this.#config.driver === 'fs' || this.#config.driver === 'fsLite' || this.#config.driver === 'fs-lite') {
|
if (
|
||||||
|
this.#config.driver === 'fs' ||
|
||||||
|
this.#config.driver === 'fsLite' ||
|
||||||
|
this.#config.driver === 'fs-lite'
|
||||||
|
) {
|
||||||
this.#config.options ??= {};
|
this.#config.options ??= {};
|
||||||
this.#config.driver = 'fs-lite';
|
this.#config.driver = 'fs-lite';
|
||||||
(this.#config.options as BuiltinDriverOptions['fs-lite']).base ??= '.astro/session';
|
(this.#config.options as BuiltinDriverOptions['fs-lite']).base ??= '.astro/session';
|
||||||
|
|
Loading…
Reference in a new issue