Skip to content

Commit

Permalink
feat: add base URL configuration for subdirectory support in Vite con…
Browse files Browse the repository at this point in the history
…fig files
  • Loading branch information
andres112 committed Dec 15, 2024
1 parent 43e9da0 commit a8e84c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 1-TransformObject/vite.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions 2-Cameras/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions 3-Animations/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8e84c4

Please sign in to comment.