Config 'base' option works on dev, but doesn't quite work on build/production. in Default Theme #4414
Closed
4 tasks done
Labels
need more info
Further information is requested
Describe the bug
Describe the bug
When I enable the
base
property in the config file, it works fine in the development environment (dev
), but it doesn't work at all in production, and I encounter several issues that I couldn't identify or resolve. Please note that I am not using any custom or complex themes; I am only working with the default theme and.md
files.Version?:
I am using
vitepress version ^1.5.0
.Errors:
Reproduction
1 - Create the application using the command: npx vitepress init
2 - Configure the
base
property in the config file, set it to: (/docs/
)3 - Test the application in the development environment.
4 - Build the site for production.
5 - Uploaded it to GitHub.
6 - Deployed it on Netlify.
Expected behavior
I expect my site to display correctly and function normally under the
mysite.org/docs/
path without any issues. This includes proper loading of all assets (CSS, JS, and images) and correct handling of internal links in both development and production environments.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: