Skip to content

Commit

Permalink
added fixed basepath ii
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 committed May 19, 2024
1 parent 1450bc1 commit 584253a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const publicURL = import.meta.env.PUBLIC_URL;
const previewBasePath = getPreviewBasePath();

ReactDOM.createRoot(document.getElementById('root')!).render(
<BrowserRouter basename={`/push-dapp/pr-preview/${process.env.VITE_PR_PREVIEW_BASE}` || publicURL}>
<BrowserRouter basename={`/push-dapp/pr-preview/${import.meta.env.VITE_PR_PREVIEW_BASE}` || publicURL}>
<Provider store={store}>
<GlobalContextProvider>
<Web3OnboardProvider web3Onboard={web3Onboard}>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default defineConfig({
// this sets a default port to 3000
port: 3000,
},
base: `/push-dapp/pr-preview/${import.meta.env.VITE_PR_PREVIEW_BASE}` || undefined,
base: `/push-dapp/pr-preview/${process.env.VITE_PR_PREVIEW_BASE}` || undefined,
build: {
outDir: 'build',
sourcemap: false,
Expand Down

0 comments on commit 584253a

Please sign in to comment.