From ca8525a90cfee134816b1005df705c307886c9d2 Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Sun, 15 Jun 2025 19:20:28 +0700 Subject: [PATCH] Bugfix/Google Sign-in hangs on redirect (#4926) * Exclude routes with language codes --- apps/api/src/main.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 06138fecc..bf14ebb90 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -1,7 +1,8 @@ import { DEFAULT_HOST, DEFAULT_PORT, - STORYBOOK_PATH + STORYBOOK_PATH, + SUPPORTED_LANGUAGE_CODES } from '@ghostfolio/common/config'; import { @@ -43,7 +44,14 @@ async function bootstrap() { defaultVersion: '1', type: VersioningType.URI }); - app.setGlobalPrefix('api', { exclude: ['sitemap.xml'] }); + app.setGlobalPrefix('api', { + exclude: [ + 'sitemap.xml', + ...SUPPORTED_LANGUAGE_CODES.map((languageCode) => { + return `/${languageCode}/*wildcard`; + }) + ] + }); app.useGlobalPipes( new ValidationPipe({ forbidNonWhitelisted: true,