-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
[BUG]: basePath is not working except default value #698
Comments
Thanks for opening an issue.
By SSG, I mean to build static files and serve from a different folder: pnpm builld
mkdir ssg
cp -r dist/public ssg/test
npx serve -s ssg |
Hi! I'm trying to solve this. But I encounter some problems:
|
Do we do that? Maybe, it's for SSG, but not sure about DEV. I haven't looked into this yet, so my question might be appropriate, but can you describe the issue you are tackling? Aren't there several issues for |
Yes. I will take a look at how it works in SSG. Reproduction repo: https://github.com/yuusheng/waku |
@yuusheng Thanks for the investigation. waku/packages/waku/src/client.ts Lines 27 to 29 in 83bf5ee
Can you check if |
I suppose it is caused by waku/packages/waku/src/client.ts Line 139 in 37cd30f
|
Okay, there must be something I miss. So, |
Nope. http://localhost:3004/RSC/test.txt is served by waku's router I think. the |
wait, so is it an html content instead of an RSC payload? sorry for the late reply. can you dig into it and find where it goes wrong? |
Reproduce Repo: https://github.com/PerfectPan/waku-issue-698
Setting basePath manualy in waku.config.ts will cause error except
/
.build mode: load js and css file error(
pnpm build && pnpm start
)dev mode: unknown error(
pnpm dev
)Some previous reserach can be seen in #697 (comment)
Would like to solve it later and also welcome other one to work on this.
The text was updated successfully, but these errors were encountered: