Fix docker build (#805)

* fix: fixed the docker build

* tidy: cleanup
This commit is contained in:
Linkie Link 2024-02-14 11:58:48 +01:00 committed by GitHub
parent 3f28ccd09c
commit 26f1ef4a2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)