Building the site works though deployed site has CORS errors #454
-
Issue
Expected ResultActual Result |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @mainangethe If you do an Discussions since it's not a specific issue with AstroWind. |
Beta Was this translation helpful? Give feedback.
-
The generated content is not okay. The behaviour is also appearing in the dist folder locally.
|
Beta Was this translation helpful? Give feedback.
I found out the issue. I was deploying the site in a sub-folder and the config was assuming there are no.
base: '/'
That's what was leading to the files not being found.
So in future if you want to deploy to a sub-folder remember to update the base path to match the sub-folder structure