next.js icon indicating copy to clipboard operation
next.js copied to clipboard

fix(next): use the asset prefix when loading a CSS in App Router

Open noreiller opened this issue 4 months ago • 1 comments

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.

noreiller avatar Oct 23 '24 09:10 noreiller