I recently deployed a vercel template and the site is up and running however when I want to edit the webiste I clone my github respiratory and then want to see live website updates with localhost by running the command npm run dev
. The issue is, I get this error:
GET / 500 in 4156ms
⨯ TypeError: “secret” is required
at get (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules_@auth0_nextjs-auth0_dist_a3dbad..js:818:15)
at getConfig (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:3350:45)
at SessionCache.getConfig (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:3422:44)
at get (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:2572:39)
at Object.getSession (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:2414:51)
at Home (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/[root of the server]__aaec46..js:642:149)
at stringify ()
digest: “810301068”
⨯ TypeError: “secret” is required
at get (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules_@auth0_nextjs-auth0_dist_a3dbad..js:818:15)
at getConfig (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:3350:45)
at SessionCache.getConfig (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:3422:44)
at get (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:2572:39)
at Object.getSession (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/node_modules@auth0_nextjs-auth0_dist_a3dbad..js:2414:51)
at Home (/Users/alexander/theta-s-a-a-s/.next/server/chunks/ssr/[root of the server]__aaec46..js:642:149)
at stringify ()
digest: “810301068”`
It says secret is reuqired and I know this is to do woth environmental variables not properly working but need help with how to fix this. Ive found this issue online like here but still struggling to work out how to fix this:
Link Here
I am new to vercel and it would be much appreciated if explained in layman’s terms.
Thank you
Alexander