Skip to content

Commit

Permalink
fix: set db filename as absolute from env
Browse files Browse the repository at this point in the history
  • Loading branch information
losolio committed Sep 7, 2023
1 parent 9cfd49b commit b7ffe0a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ export default ({ env }) => {
sqlite: {
connection: {
client: "pg",
filename: path.join(
__dirname,
"..",
"..",
env("DATABASE_FILENAME", ".tmp/data.db")
),
filename: env("DATABASE_FILENAME", ".tmp/data.db"),
},
useNullAsDefault: true,
},
Expand Down

0 comments on commit b7ffe0a

Please sign in to comment.