This commit is contained in:
Milo Schwartz 2024-09-29 14:37:26 -04:00
parent 8a009f7fbc
commit 5f768f1855
No known key found for this signature in database
9 changed files with 32 additions and 52 deletions

View file

@ -11,8 +11,8 @@ import external from "@server/routers/external";
const dev = environment.ENVIRONMENT !== "prod";
const app = next({ dev });
const handle = app.getRequestHandler();
const mainPort = environment.EXTERNAL_PORT;
const internalPort = environment.INTERNAL_PORT;
const mainPort = 3000;
const internalPort = 3001;
app.prepare().then(() => {
// Main server
@ -20,7 +20,7 @@ app.prepare().then(() => {
mainServer.use(helmet());
mainServer.use(cors());
const prefix = `/api/${environment.API_VERSION}`;
const prefix = `/api/v1`;
mainServer.use(prefix, express.json(), external);
// We are using NEXT from here on