.
This commit is contained in:
1 parent
b7127b59af
commit
d0ae8ffb0e
3 files changed
+8
-4
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user