Merge branch 'develop' into mp-2239-small-updates-ui
This commit is contained in:
commit
4e26bddd33
13
.env
13
.env
@ -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
|
|
@ -1,4 +1,8 @@
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user