{"size": 380, "ext": "js", "max_stars_repo_path": "server/index.js", "max_stars_repo_name": "santychuy/jaxi-tank-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/index.js", "max_issues_repo_name": "santychuy/jaxi-tank-admin", "max_issues_repo_issues_event_min_datetime": "2020-05-22T01:52:30.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T11:36:54.000Z", "max_forks_repo_path": "server/index.js", "max_forks_repo_name": "santychuy/jaxi-tank-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 23.75, "max_line_length": 53, "alphanum_fraction": 0.6684210526}
import './database';
import next from 'next';
import { serverExpress } from './app';
import { config } from './config';

const {
  APP_SETTINGS: { NODE_ENV, PORT },
} = config;

const port = parseInt(PORT, 10) || 4000;
const dev = NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();

app.prepare().then(serverExpress(dev, handle, port));
