Skip to content

Commit e4a6743

Browse files
Deploy to GitHub Pages
Configure GitHub Pages deployment.
1 parent dda1c05 commit e4a6743

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
12
import { defineConfig } from "vite";
23
import react from "@vitejs/plugin-react-swc";
34
import path from "path";
45
import { componentTagger } from "lovable-tagger";
56

67
// https://vitejs.dev/config/
78
export default defineConfig(({ mode }) => ({
9+
base: mode === 'production' ? '/your-repo-name/' : '/',
810
server: {
911
host: "::",
1012
port: 8080,

0 commit comments

Comments
 (0)