|
|
@ -14,17 +14,16 @@ import { Session } from './entity/Session';
|
|
|
|
import { getSettings } from './lib/settings';
|
|
|
|
import { getSettings } from './lib/settings';
|
|
|
|
import logger from './logger';
|
|
|
|
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 dev = process.env.NODE_ENV !== 'production';
|
|
|
|
const app = next({ dev });
|
|
|
|
const app = next({ dev });
|
|
|
|
const handle = app.getRequestHandler();
|
|
|
|
const handle = app.getRequestHandler();
|
|
|
|
|
|
|
|
|
|
|
|
createConnection();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app
|
|
|
|
app
|
|
|
|
.prepare()
|
|
|
|
.prepare()
|
|
|
|
.then(async () => {
|
|
|
|
.then(async () => {
|
|
|
|
|
|
|
|
await createConnection();
|
|
|
|
// Load Settings
|
|
|
|
// Load Settings
|
|
|
|
getSettings().load();
|
|
|
|
getSettings().load();
|
|
|
|
|
|
|
|
|
|
|
|