1 parent 35ece1b commit cf8312bCopy full SHA for cf8312b
2 files changed
dist/index.html
@@ -29,7 +29,7 @@
29
}
30
})();
31
</script>
32
- <!-- Build: 1749064439 -->
+ <!-- Fixed deployment - v4 with cache busting -->
33
<style>
34
body {
35
margin: 0;
src/utils/assetPaths.js
@@ -12,7 +12,8 @@ export function getAssetPath(path) {
12
const cleanPath = path.startsWith('/') ? path.slice(1) : path;
13
14
// In production (GitHub Pages), we need to include the base path
15
- if (import.meta.env.PROD) {
+ // Use both PROD check and base URL detection for GitHub Pages
16
+ if (import.meta.env.PROD || import.meta.env.BASE_URL === '/3D-Portfolio/') {
17
return `/3D-Portfolio/${cleanPath}`;
18
19
0 commit comments