diff --git a/src/utils/url.ts b/src/utils/url.ts index 807c2ed0..a3a331c9 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -1,4 +1,8 @@ export const getUrl = (baseUrl: string, path: string): string => { + const isPlaceholder = baseUrl.split('APP_').length > 1 + + if (isPlaceholder) return baseUrl + '/' + path + const url = new URL(baseUrl) if (process.env.NEXT_PUBLIC_API_KEY)