build: fix production build

pull/129/head
sct 4 years ago
parent 364d9d105c
commit e40a815d07

@ -16,12 +16,12 @@ const prodConfig = {
database: 'config/db/db.sqlite3',
synchronize: false,
logging: false,
entities: ['dist/server/entity/**/*.js'],
migrations: ['dist/server/migration/**/*.js'],
entities: ['dist/entity/**/*.js'],
migrations: ['dist/migration/**/*.js'],
migrationsRun: true,
cli: {
entitiesDir: 'dist/server/entity',
migrationsDir: 'dist/server/migration',
entitiesDir: 'dist/entity',
migrationsDir: 'dist/migration',
},
};

@ -14,17 +14,16 @@ import { Session } from './entity/Session';
import { getSettings } from './lib/settings';
import logger from './logger';
const API_SPEC_PATH = path.join(__dirname, 'overseerr-api.yml');
const API_SPEC_PATH = path.join(__dirname, '../overseerr-api.yml');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
createConnection();
app
.prepare()
.then(async () => {
await createConnection();
// Load Settings
getSettings().load();

@ -1,6 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"target": "ES2019",
"lib": ["ES2019"],
"module": "commonjs",
"outDir": "../dist",
"noEmit": false

Loading…
Cancel
Save