File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import tailwind from '@astrojs/tailwind';
8
8
// https://astro.build/config
9
9
export default defineConfig ( {
10
10
site : 'https://zfox23.github.io' ,
11
- base : 'spatial-photo-webxr-viewer' ,
11
+ base : '/ spatial-photo-webxr-viewer' ,
12
12
integrations : [ react ( ) , tailwind ( ) ] ,
13
13
vite : {
14
14
server : {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as THREE from 'three';
2
2
import { useTexture } from "@react-three/drei" ;
3
3
4
4
export default function LoadingMesh ( ) {
5
- const [ immersiveLoadingTexture ] = useTexture ( [ ' /ImmersiveLoading.jpg' ] , ( [ tex ] ) => {
5
+ const [ immersiveLoadingTexture ] = useTexture ( [ ` ${ import . meta . env . BASE_URL } /ImmersiveLoading.jpg` ] , ( [ tex ] ) => {
6
6
tex . repeat . set ( 2 , 1 ) ;
7
7
tex . wrapS = tex . wrapT = THREE . RepeatWrapping ;
8
8
} ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as THREE from 'three';
2
2
import { useTexture } from "@react-three/drei" ;
3
3
4
4
export default function NoImageMesh ( ) {
5
- const [ immersiveLoadingTexture ] = useTexture ( [ ' /NoImage.jpg' ] , ( [ tex ] ) => {
5
+ const [ immersiveLoadingTexture ] = useTexture ( [ ` ${ import . meta . env . BASE_URL } /NoImage.jpg` ] , ( [ tex ] ) => {
6
6
tex . repeat . set ( 2 , 1 ) ;
7
7
tex . wrapS = tex . wrapT = THREE . RepeatWrapping ;
8
8
} ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const { title } = Astro.props;
12
12
<meta charset =" UTF-8" />
13
13
<meta name =" description" content =" View Apple's Spatial Photos in 3D VR with your browser via WebXR." />
14
14
<meta name =" viewport" content =" width=device-width" />
15
- <link rel =" icon" type =" image/svg+xml" href =" /favicon.svg" />
15
+ <link rel =" icon" type =" image/svg+xml" href ={ ` ${ import . meta . env . BASE_URL } /favicon.svg` } />
16
16
<title >{ title } </title >
17
17
</head >
18
18
<body class =" min-h-screen w-full" >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import GitHubIcon from "../components/icons/GitHubIcon";
14
14
<a href =" https://zachfox.photography" class =" group" target =" _blank" >
15
15
<img
16
16
class =" w-7 h-7 opacity-75 group-hover:scale-110 group-hover:opacity-100 group-active:scale-100 transition-transform duration-75"
17
- src =" /logo-orange-on-white-2023-08-29.svg"
17
+ src ={ ` ${ import . meta . env . BASE_URL } /logo-orange-on-white-2023-08-29.svg` }
18
18
alt =" The Zach Fox Photography logo."
19
19
/>
20
20
</a >
You can’t perform that action at this time.
0 commit comments