storyblok / react-next-boilerplate

Nextjs Storyblok boilerplate
https://www.storyblok.com/tp/add-a-headless-cms-to-next-js-in-5-minutes
64 stars 34 forks source link

Fixes 500 errors when running on Now hosting #5

Closed ajmueller closed 3 years ago

ajmueller commented 5 years ago

When running on Now hosting, either with the now dev command locally or on the actual cloud service, I was getting 500 errors for all files being requested from the _next directory. I believe this can be resolved with a Regex change to the src property for rewriting URLs to point to the index page. You can test this on regex101 here.