diff --git a/1-TransformObject/vite.config.js b/1-TransformObject/vite.config.js index 457952d..77ddd46 100644 --- a/1-TransformObject/vite.config.js +++ b/1-TransformObject/vite.config.js @@ -1,7 +1,7 @@ export default { root: 'src/', publicDir: '../static/', - base: './', + base: './', // Base URL when the app is running in a subdirectory server: { host: true, // Open to local network and display URL diff --git a/2-Cameras/vite.config.js b/2-Cameras/vite.config.js index 23032d7..1076d7b 100644 --- a/2-Cameras/vite.config.js +++ b/2-Cameras/vite.config.js @@ -3,6 +3,7 @@ import restart from 'vite-plugin-restart' export default { root: 'src/', // Sources files (typically where index.html is) publicDir: '../static/', // Path from "root" to static assets (files that are served as they are) + base: './', // Base URL when the app is running in a subdirectory server: { host: true, // Open to local network and display URL diff --git a/3-Animations/vite.config.js b/3-Animations/vite.config.js index 23032d7..1076d7b 100644 --- a/3-Animations/vite.config.js +++ b/3-Animations/vite.config.js @@ -3,6 +3,7 @@ import restart from 'vite-plugin-restart' export default { root: 'src/', // Sources files (typically where index.html is) publicDir: '../static/', // Path from "root" to static assets (files that are served as they are) + base: './', // Base URL when the app is running in a subdirectory server: { host: true, // Open to local network and display URL