Files
api.pawol.nu/config/database.js
T

12 lines
250 B
JavaScript
Raw Normal View History

2022-05-12 02:13:22 +04:00
const path = require('path');
2020-12-04 20:12:49 +01:00
module.exports = ({ env }) => ({
2022-05-12 02:13:22 +04:00
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
2020-12-04 20:12:49 +01:00
},
2022-05-12 02:13:22 +04:00
useNullAsDefault: true,
2020-12-04 20:12:49 +01:00
},
2022-05-12 02:13:22 +04:00
});