schlechtenburg/packages/cms/config/database.ts

12 lines
249 B
TypeScript
Raw Normal View History

2022-12-11 17:49:06 +00:00
import path from 'path';
export default ({ env }) => ({
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')),
},
useNullAsDefault: true,
},
});