chore: configure dev ports (backend:3001, frontend:3000 + proxy)

This commit is contained in:
2026-07-02 14:04:26 +08:00
parent 03441efe45
commit 1b19904e77
3 changed files with 12 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ async function bootstrap() {
app.setGlobalPrefix('api');
app.enableCors();
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
await app.listen(process.env.PORT ?? 3000);
console.log(`Server running on http://localhost:${process.env.PORT ?? 3000}`);
await app.listen(process.env.PORT ?? 3001);
console.log(`Server running on http://localhost:${process.env.PORT ?? 3001}`);
}
bootstrap();