fix: fixed the docker build

This commit is contained in:
Linkie Link 2024-02-14 11:41:51 +01:00
parent 3f28ccd09c
commit dae929d851
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

@ -1,4 +1,10 @@
export const getUrl = (baseUrl: string, path: string): string => { 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) const url = new URL(baseUrl)
if (process.env.NEXT_PUBLIC_API_KEY) if (process.env.NEXT_PUBLIC_API_KEY)