0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

[ci] format

This commit is contained in:
Matt Kane 2024-12-19 11:12:01 +00:00 committed by astrobot-houston
parent 1ec5b44ce3
commit 45005a581d

View file

@ -375,7 +375,11 @@ export class AstroSession<TDriver extends SessionDriverName = any> {
return this.#storage!;
}
// 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.driver = 'fs-lite';
(this.#config.options as BuiltinDriverOptions['fs-lite']).base ??= '.astro/session';