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

This commit is contained in:
Morgan authored and GitHub committed 2025-06-17 12:55:15 +00:00
1 parent 540bf868b5
commit 3da9fc5500
1 file changed
+4
+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;
};