Skip to content

Commit

Permalink
fix BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Aug 21, 2024
1 parent e0bfc5c commit d29a304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install deps
run: pnpm install
- name: Build
run: VITE_BASE_NAME="web3-blockspace-actions" pnpm build
run: BASE_URL="web3-blockspace-actions" pnpm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const HistoryRouter = unstable_HistoryRouter
export const Router: FCC = (props) => (
<HistoryRouter
history={history}
basename={import.meta.env.VITE_BASE_NAME}
basename={import.meta.env.BASE_URL}
{...props}
/>
)
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default defineConfig({
"@": "/src",
},
},
base: process.env.BASE_URL ?? "/",
})

0 comments on commit d29a304

Please sign in to comment.