From d29a30400aa0da3acc16c4611552f62214cd3152 Mon Sep 17 00:00:00 2001 From: Victor Oliva Date: Wed, 21 Aug 2024 11:36:28 +0200 Subject: [PATCH] fix BASE_URL --- .github/workflows/publish.yml | 2 +- src/router/Router.tsx | 2 +- vite.config.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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 ?? "/", })