Vannkorn

Full Stack Web Developer

Close

How to fix Error: unable to verify the first certificate in Next JS

After some googling, I finally got the error: unable to verify the first certificate fixed by

Ads: Register now via this link to receive $300 credit from Vultr

My first ever experience diving into a Next JS project with WordPress as the headless CMS was like a toddler learning to walk.

There were a bunch of errors I have no idea why they occurred. And I think I’m not alone.

After some googling, I finally got the error: unable to verify the first certificate fixed by adding the following configuration into my .env.local file.

NODE_TLS_REJECT_UNAUTHORIZED = "0";

Leave a Reply

Your email address will not be published. Required fields are marked *