mirror of
https://github.com/strapi/strapi.git
synced 2026-05-03 16:22:30 +00:00
15 lines
382 B
TypeScript
15 lines
382 B
TypeScript
import path from 'path';
|
|
import type { Core } from '@strapi/strapi';
|
|
|
|
const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Database<'sqlite'> => ({
|
|
connection: {
|
|
client: 'sqlite',
|
|
connection: {
|
|
filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')),
|
|
},
|
|
useNullAsDefault: true,
|
|
},
|
|
});
|
|
|
|
export default config;
|