feat: add database indexes, implement CORS configuration, and lazy-load frontend routes
Build and Push Multi-Platform Images / build-and-push (push) Successful in 35s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 35s
This commit is contained in:
1 parent
aa4c181b0c
commit
1ed3afd2e2
6 files changed
+52
-35
No files matched your search
@@ -7,7 +7,7 @@ async function bootstrap(): Promise<void> {
|
||||
const port = process.env.PORT ?? 3100;
|
||||
|
||||
app.enableCors({
|
||||
origin: '*', // Für lokale Entwicklung zulassen, oder spezifisch: 'http://localhost:8080'
|
||||
origin: process.env.CORS_ORIGIN ?? (process.env.NODE_ENV === 'production' ? false : '*'),
|
||||
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
|
||||
credentials: true,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user