chore: add global prefix to api v2 via env variable for selfhost (#21860)

This commit is contained in:
Morgan
2025-06-17 12:55:15 +00:00
committed by GitHub
parent 540bf868b5
commit 3da9fc5500
+4
View File
@@ -81,5 +81,9 @@ export const bootstrap = (app: NestExpressApplication): NestExpressApplication =
app.use(cookieParser());
if (process?.env?.API_GLOBAL_PREFIX) {
app.setGlobalPrefix(process?.env?.API_GLOBAL_PREFIX);
}
return app;
};