-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: non js assets path should add config.basePath to be relative to root path #697
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for investigating into it! It looks valid.
We use basePath
instead of /
. (Though, we don't have tests and changing basePath in config might not fully work, yet. Contributions are welcome.)
0fdad23
to
c8d0f66
Compare
I totally ignore the basePath option lol. I have already changed the code. For changing basePath in config, I tried and it seems not working well. This may involve the paths of resources in HTML files, the paths of generated files, and the paths for server hosting static resources. It seems that something is not quite right with all of them. Would you mind I open an another issue to follow this and try to add test cases and solution later? |
Yeah, we have the Please open a new issue and maybe our first target would be SSG. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks okay.
I wonder if @Aslemammad can give a review too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean & Simple! I love the catch.
Solve #649.
I did some research based on #674. The root cause is that css path in html missing / so that when brower try to join the real path, it will use the current path instead of root path.