basic structure setup

This commit is contained in:
dimitar committed 2026-01-10 19:41:04 +01:00
commit 71dfd86187
89 files changed
+41490

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const allowedOrigins = [
process.env.FRONTEND_URL ?? 'http://localhost:5173',
process.env.STRAPI_URL ?? 'http://localhost:1337',
];
app.enableCors({
origin: allowedOrigins,
credentials: true,
});
app.setGlobalPrefix('api/v1');
await app.listen(process.env.PORT ?? 3000);
}
void bootstrap();