Skip to content

Commit

Permalink
🚑Update base URL for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
uarix committed Nov 24, 2024
1 parent c8380d8 commit 81c67c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 81c67c1

Please sign in to comment.