This commit is contained in:
dahyeon committed 2026-04-25 12:54:57 -07:00
1 parent b7127b59af
commit d0ae8ffb0e
3 files changed
+8 -4

No files matched your search

+6 -2
View File
@@ -10,7 +10,11 @@ async function bootstrap() {
const isDev = process.env.NODE_ENV === 'dev';
const webOrigins = process.env.WEB_ORIGIN?.split(',').map((origin) =>
origin.trim(),
) ?? ['http://localhost:5173', 'http://126.dahyeon.us:5173'];
) ?? [
'http://localhost:5173',
'http://126.dahyeon.us:5173',
'https://lolympus.dahyeon.us',
];
app.enableCors({
origin: isDev ? true : webOrigins,
@@ -25,6 +29,6 @@ async function bootstrap() {
transformOptions: { enableImplicitConversion: false },
}),
);
await app.listen(process.env.PORT ?? 3000);
await app.listen(isDev ? 3000 : 10712);
}
bootstrap();