You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run npm run build with standalone mode, followed by node server.js to run the application, I get 500 when trying to load any page.
I've narrowed it down to strictDynamic and strictInlineStyles because including either of these causes the same issue.
Running the e2e in this repo doesn't seem to have the same issue so something in my setup in combination with the package causes the issue? Just not sure where 😓
Error [SyntaxError]: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Response3.json (evalmachine.<anonymous>:1912:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async pRetry.retries.retries (evalmachine.<anonymous>:50:41499)
at async RetryOperation._fn (evalmachine.<anonymous>:50:39483)
I had this issue in preview environment on vercel.
I was using the vercel preview deployment protection which threw itself in between the middleware call to https://[vercel-preview-domain].vercel.app/_next/static/~csp/csp-manifest.json
strictDynamic fetch requests the cspmanifest.json and has no catch for if the response isnt json.
When I run
npm run build
with standalone mode, followed bynode server.js
to run the application, I get500
when trying to load any page.I've narrowed it down to
strictDynamic
andstrictInlineStyles
because including either of these causes the same issue.Running the e2e in this repo doesn't seem to have the same issue so something in my setup in combination with the package causes the issue? Just not sure where 😓
Package Versions
Middleware file
The text was updated successfully, but these errors were encountered: