Compare commits

...
Author SHA1 Message Date
Linkie Link b8c663b9e4 fix: cleanup the .env file 2024-02-14 12:19:56 +01:00
Linkie Link ea07d5f11e tidy: cleanup 2024-02-14 11:47:42 +01:00
Linkie Link dae929d851 fix: fixed the docker build 2024-02-14 11:41:51 +01:00
2 changed files with 4 additions and 13 deletions
-13
View File
@@ -1,13 +0,0 @@
# DO NOT EDIT THIS FILE WHEN USING DOCKER
# These values are used to replace the values in the built app,
# you should pass environment variables as defined in README.md
# CONFIG #
NEXT_PUBLIC_NETWORK=mainnet
# OSMOSIS-1 #
NEXT_PUBLIC_OSMOSIS_RPC=APP_NEXT_OSMOSIS_RPC
NEXT_PUBLIC_OSMOSIS_REST=APP_NEXT_OSMOSIS_REST
# WALLET CONNECT #
NEXT_PUBLIC_WALLET_CONNECT_ID=APP_NEXT_WALLET_CONNECT_ID
+4
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)