From 280c64b54f4bfa31ce02124a548098de3b5039d9 Mon Sep 17 00:00:00 2001 From: Pranab Das <31024886+pranabdas@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:14:34 +0800 Subject: [PATCH] adjustments to base url --- .github/workflows/deploy.yml | 2 +- vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 21aa56c..f95a4e0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: run: npm install - name: Build website - run: npm run build + run: npm run build -- --base=/${{ github.event.repository.name }}/ - name: Deploy on gh-pages uses: peaceiris/actions-gh-pages@v4 diff --git a/vite.config.js b/vite.config.js index b5f85cb..6ebb2a4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,7 @@ import react from "@vitejs/plugin-react-swc"; // https://vitejs.dev/config/ export default defineConfig({ - base: "/sg-tax-calculator/", + base: "/", plugins: [react()], server: { port: 3000,