nibtime / next-safe-middleware

Strict CSP (Content-Security-Policy) for Next.js hybrid apps https://web.dev/strict-csp/
https://next-safe-middleware.vercel.app
MIT License
79 stars 20 forks source link

NextJS 13.4.4 Internal server error #96

Open DubuWaMaji opened 1 year ago

DubuWaMaji commented 1 year ago

Hi.

I'm getting internal server error after upgrading to NextJS 13.4.4 (from 13.3.0). Removing "strictDynamic()" resolves internal server error. Anyone else had the same experience?

pgbradbury commented 1 year ago

This appears to be an abandoned project. @nibtime are you still maintaining this?

deivoff commented 1 year ago

@DubuWaMaji after a long debug it helped me to add this construction to next.config.js

const dns = require('dns');

dns.setDefaultResultOrder('ipv4first');

The problem is not in the lib (although it may be possible to fix it too), but in node.js