-
-
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: remove <base /> #674
fix: remove <base /> #674
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. |
@@ -75,9 +75,6 @@ ${opts.htmlHead} | |||
}, | |||
transformIndexHtml() { | |||
return [ | |||
// HACK without <base>, some relative assets don't work. |
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.
Do you know what was the original problem?
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.
No honestly, but what I guess was the potential solution was the fact the we made things either absolute to the project root or to the user's root.
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.
Let me check:
- It's introduced in breaking: no index html #289.
- cb17af5
- Going back to 7c0a6ef and remove the hack
- npm run website:prd
- open http://localhost:8080/blog/introducing-waku
Now, let's try this branch:
- git switch fix/remove-base
- npm run website:prd
- open http://localhost:8080/blog/introducing-waku
same error
So, no, it's not fixed.
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.
will check this soon!
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.
I did some research and might figure out the root case. I am not so sure can i open another pr to solve this?
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.
@PerfectPan For sure! feel free to, i'd be happy to close this if that solves it.
Superseded by #697. |
…root path (#697) 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. ![CleanShot 2024-05-05 at 00 44 55@2x](https://github.com/dai-shi/waku/assets/24316656/55ac214d-b5c9-49ed-9e67-95b59ed837b8) ![CleanShot 2024-05-05 at 00 45 27@2x](https://github.com/dai-shi/waku/assets/24316656/40021aeb-acbe-4f07-ac9f-79e9d7ebaa2a)
Resolves #649