fix: add global /api prefix to match nginx proxy; exclude health endpoint
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 54s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 54s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
4b11010c65
commit
01df2453d7
@ -12,6 +12,8 @@ async function bootstrap() {
|
|||||||
|
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
|
|
||||||
|
app.setGlobalPrefix('api', { exclude: ['health'] });
|
||||||
|
|
||||||
app.enableCors({
|
app.enableCors({
|
||||||
origin: isProduction
|
origin: isProduction
|
||||||
? [configService.get('app.allowedOrigin', 'https://longde.cloud')]
|
? [configService.get('app.allowedOrigin', 'https://longde.cloud')]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user