diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2e6af44..3576ce2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/src/router/Router.tsx b/src/router/Router.tsx index 53216ee..53712f5 100644 --- a/src/router/Router.tsx +++ b/src/router/Router.tsx @@ -6,7 +6,7 @@ const HistoryRouter = unstable_HistoryRouter export const Router: FCC = (props) => ( ) diff --git a/vite.config.ts b/vite.config.ts index 152522c..e21bfaa 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,4 +9,5 @@ export default defineConfig({ "@": "/src", }, }, + base: process.env.BASE_URL ?? "/", })