Open tusharvelingkar opened 6 months ago
It's happening because link
(and script
) tags in static export html is using absolute path rather than relative path of the respective file. For instance,
href="/_next/static/css/39e63e6be2f0f97f.css"
rather than
href="./_next/static/css/39e63e6be2f0f97f.css"
I had to replace all the paths (src
and href
) to make it up to my needs :(
Link to the code that reproduces this issue
https://github.com/tusharvelingkar/static-export-bug
To Reproduce
Current vs. Expected behavior
Current Output
Expected Output Above output is when app run using dev mode
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response