From 81c67c1a8ead212a37361ca6986e4a4a2df9d6eb Mon Sep 17 00:00:00 2001 From: Quarix <144305875+uarix@users.noreply.github.com> Date: Sun, 24 Nov 2024 22:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91Update=20base=20URL=20for=20deploym?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-gh-pages.yml | 2 ++ vite.config.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 45a13e9..7a80788 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -45,6 +45,8 @@ jobs: run: npm install - name: Build run: npm run build + env: + BASE_URL: "/uFolio/" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/vite.config.ts b/vite.config.ts index 1c21dbb..7f89794 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import { componentTagger } from "lovable-tagger"; import compress from 'vite-plugin-compression'; export default defineConfig(({ mode }) => ({ - base: './', + base: process.env.BASE_URL || '/', server: { host: "::", port: 8080,