Skip to content

Commit e7bc7eb

Browse files
authored
Merge pull request #99 from Oak-Digital/playground-db
chore(playground): Fixed database path
2 parents 9559633 + 3d7481e commit e7bc7eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

playground/config/database.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ module.exports = ({ env }) => ({
44
connection: {
55
client: 'sqlite',
66
connection: {
7-
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
7+
filename: path.join(
8+
__dirname,
9+
'..',
10+
// We need to go back once more to get out of the dist folder
11+
'..',
12+
env('DATABASE_FILENAME', '.tmp/data.db')
13+
),
814
},
915
useNullAsDefault: true,
1016
},

0 commit comments

Comments
 (0)