build: fix production build

This commit is contained in:
sct
2020-10-11 00:51:32 +00:00
parent 364d9d105c
commit e40a815d07
4 changed files with 8 additions and 7 deletions

View File

@@ -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();

File diff suppressed because it is too large Load Diff

View File

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