Next.js Discord

Discord Forum

Static Export Assets Cors Error

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
I need to use the "export: output" static build.
Initially when I build the project it's not able to connect the assets with the HTML (not using live server just opening the file) as the assets are using relative folder, which adding assetPrefix: '.' resolved.
However now I get cors errors for every resource
Are there any workarounds for that ?

0 Replies