Error: self signed certificate in certificate chain

I try to configure Storyblok with Next.js following this tutorial https://www.storyblok.com/tp/next-js-react-guide#connecting-storyblok-with-next-js
and when I have everything set I get the following error:
`Server Error
Error: self signed certificate in certificate chain

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
TLSSocket.onConnectSecure
_tls_wrap.js (1497:34)
TLSSocket.emit
events.js (315:20)
TLSSocket._finishInit
_tls_wrap.js (932:8)
TLSWrap.ssl.onhandshakedone
_tls_wrap.js (706:12)`

Can anyone help me with this?

Hi Gabriela,

this seems to be connected to the Node.js environment and the SSL communication. There is different ways this can be resolved and this thread goes into detail, how the problem can be resolved: https://stackoverflow.com/questions/45088006/nodejs-error-self-signed-certificate-in-certificate-chain

The easiet would probably to try and run npm config set strict-ssl=false and see if that helps to resolve the issue.

Best,
Lisi

Thanks Lisi for the hint. I resolved it with the usage of configuration settings in the .env.development.local:
NODE_TLS_REJECT_UNAUTHORIZED=0

I might be true that it’s equivalent to what you suggested, but I haven’t trued to run the npm command.