Skip to content

Commit cf8312b

Browse files
author
Parsa Azari
committed
fixed the missing glbs
1 parent 35ece1b commit cf8312b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
})();
3131
</script>
32-
<!-- Build: 1749064439 -->
32+
<!-- Fixed deployment - v4 with cache busting -->
3333
<style>
3434
body {
3535
margin: 0;

src/utils/assetPaths.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export function getAssetPath(path) {
1212
const cleanPath = path.startsWith('/') ? path.slice(1) : path;
1313

1414
// In production (GitHub Pages), we need to include the base path
15-
if (import.meta.env.PROD) {
15+
// Use both PROD check and base URL detection for GitHub Pages
16+
if (import.meta.env.PROD || import.meta.env.BASE_URL === '/3D-Portfolio/') {
1617
return `/3D-Portfolio/${cleanPath}`;
1718
}
1819

0 commit comments

Comments
 (0)