Next.js Discord

Discord Forum

NextJS learn dashboard app clone to new machine breaks?

Unanswered
Griffon Fauve de Bretagne posted this in #help-forum
Open in Discord
Griffon Fauve de BretagneOP
I'm part way through the dashboard app tutorial and wanted to continue on another machine. Everything works fine from my main computer. When I clone the repo onto a new machine, install all dependencies add the .env with the secrets from vercel-postgres, when I run the app from localhost it doesn't fetch data from the database. I get this error if I visit /dashboard. What is missing from the cloned instance to allow for db calls?

This is part of the error messages in the terminal:

cause: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
at TLSSocket.emit (node:events:514:28)
at TLSSocket._finishInit (node:_tls_wrap:1085:8)
at ssl.onhandshakedone (node:_tls_wrap:871:12)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}

1 Reply

Giant panda
I am getting this as well @Griffon Fauve de Bretagne . Did you ever solve this?