12 lines
250 B
JavaScript
12 lines
250 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = ({ env }) => ({
|
||
|
connection: {
|
||
|
client: 'sqlite',
|
||
|
connection: {
|
||
|
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
|
||
|
},
|
||
|
useNullAsDefault: true,
|
||
|
},
|
||
|
});
|