You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
overseerr/ormconfig.js

32 lines
721 B

const devConfig = {
type: 'sqlite',
database: 'db/db.sqlite3',
synchronize: true,
logging: true,
entities: ['server/entity/**/*.ts'],
migrations: ['server/migration/**/*.ts'],
cli: {
entitiesDir: 'server/entity',
migrationsDir: 'server/migration',
},
};
const prodConfig = {
type: 'sqlite',
database: 'db/db.sqlite3',
synchronize: false,
logging: false,
entities: ['dist/server/entity/**/*.js'],
migrations: ['dist/server/migration/**/*.js'],
migrationsRun: true,
cli: {
entitiesDir: 'dist/server/entity',
migrationsDir: 'dist/server/migration',
},
};
const finalConfig =
process.env.NODE_ENV !== 'production' ? devConfig : prodConfig;
module.exports = finalConfig;