https://cal.com logo
#general
Title
# general
r

Rohan Rajpal

04/22/2022, 4:46 AM
Hey, after pulling latest main, I’m getting this error
Copy code
@calcom/web:start: <https://next-auth.js.org/errors#no_secret> Please define a `secret` in production. MissingSecret [MissingSecretError]: Please define a `secret` in production.
@calcom/web:start:     at assertConfig (/workspace/node_modules/next-auth/core/lib/assert.js:26:14)
@calcom/web:start:     at NextAuthHandler (/workspace/node_modules/next-auth/core/index.js:34:52)
@calcom/web:start:     at NextAuthNextHandler (/workspace/node_modules/next-auth/next/index.js:21:51)
@calcom/web:start:     at /workspace/node_modules/next-auth/next/index.js:57:38
@calcom/web:start:     at Object.apiResolver (/workspace/node_modules/next/dist/server/api-utils/node.js:184:15)
@calcom/web:start:     at runMicrotasks (<anonymous>)
@calcom/web:start:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
@calcom/web:start:     at async NextNodeServer.runApi (/workspace/node_modules/next/dist/server/next-server.js:395:9)
@calcom/web:start:     at async Object.fn (/workspace/node_modules/next/dist/server/base-server.js:477:37)
@calcom/web:start:     at async Router.execute (/workspace/node_modules/next/dist/server/router.js:243:32) {
@calcom/web:start:   code: 'NO_SECRET'
@calcom/web:start: }
I guess its because of this commit? https://github.com/calcom/cal.com/commit/f10bf382924a4665e76273b17f7f863fb30a0f60 So do we also have to set the
NEXTAUTH_SECRET
environment variable?
also for someone who only cares about stable releases, I should deploy from the branch
V1.5
right? anyone here knoows how to do that via railway.app? would appreciate the help a ton!
Also kind of confused why is this happening https://github.com/calcom/cal.com/issues/2572
8 Views