Skip to content

Commit b7fd6c8

Browse files
author
Parsa Azari
committed
Fix GitHub Pages deployment: use relative paths instead of /3D-Portfolio/ base
1 parent fc5fcdb commit b7fd6c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vite.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
22
import { resolve } from "path";
33

44
export default defineConfig({
5-
base: process.env.NODE_ENV === 'production' ? '/3D-Portfolio/' : '/',
5+
base: process.env.NODE_ENV === 'production' ? './' : '/',
66
server: {
77
port: 3000,
88
open: true,
@@ -56,4 +56,4 @@ export default defineConfig({
5656
},
5757
assetsInclude: ["**/*.glsl"],
5858
publicDir: "public",
59-
});
59+
});

0 commit comments

Comments
 (0)