Skip to content

Commit

Permalink
fix: basepath for subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi committed Nov 28, 2023
1 parent f9b03c5 commit f7103b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion webapp/src/config/env/dev.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"NETWORK": "sepolia",
"CHAIN_ID": "11155111",
"BASE_NAME": "/marketplace",
"NFT_SERVER_URL": "https://nft-api.decentraland.zone/v1",
"MARKETPLACE_SERVER_URL": "https://marketplace-api.decentraland.zone/v1",
"BUILDER_SERVER_URL": "https://builder-api.decentraland.zone/v1",
Expand Down
1 change: 0 additions & 1 deletion webapp/src/config/env/stg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"NETWORK": "mainnet",
"CHAIN_ID": "1",
"BASE_NAME": "/marketplace",
"NFT_SERVER_URL": "https://nft-api.decentraland.today/v1",
"MARKETPLACE_SERVER_URL": "https://marketplace-api.decentraland.today/v1",
"BUILDER_SERVER_URL": "https://builder-api.decentraland.today/v1",
Expand Down
4 changes: 3 additions & 1 deletion webapp/src/modules/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import { createMemoryHistory, createBrowserHistory, History } from 'history'

export const createHistory = () =>
createBrowserHistory({
basename: config.get('BASE_NAME') ?? undefined
basename: /^decentraland.(zone|org|today)$/.test(window.location.host)
? '/marketplace'
: undefined
})

export function initStore(history: History) {
Expand Down

0 comments on commit f7103b0

Please sign in to comment.