Skip to content

Commit

Permalink
fix: explicitly set file:// scheme on database directories (chrisbeni…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa authored Aug 5, 2024
1 parent e4a184e commit eb5038d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ yargs(hideBin(process.argv))
desc: 'Path to the database directory',
default: getDefaultDatabaseDirectory(),
normalize: true,
coerce: (db: string) => fileURLToPath(new URL(db, import.meta.url)),
coerce: (db: string) =>
fileURLToPath(new URL(`file://${db}`, import.meta.url)),
})
.option('force_migration', {
type: 'boolean',
Expand Down

0 comments on commit eb5038d

Please sign in to comment.