next.js
next.js copied to clipboard
fix(next): use the asset prefix when loading a CSS in App Router
This PR fixes an issue when using next/dynamic
and assetPrefix
config in App Router.
The current behavior loads the CSS with only the pathname and so, it results with a 404.
The new behavior uses the full url of the asset.