Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Dec 19, 2024
1 parent 1ec5b44 commit 45005a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/astro/src/core/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 45005a5

Please sign in to comment.