Hey guys, I tried deploying @cal/web on vercel and...
# developers
j
Hey guys, I tried deploying @cal/web on vercel and it isn’t redirecting auth after entering email/pw information. But it works fine building locally and on a bare metal instance. How should I check what’s wrong if console shows nothing wrong? Also is there description or step by step on how to deploy API and console on vercel? Thanks
h
Maybe check the response of /credentials call to see what error it's reporting The call goes when you submit the login form
Check thr actual response body. It should have errors if you have trouble loggong in
j
i figured it out
domain cookies that can be recognized for all subdomains can only be issued for the root domain. I forgot this. Reference Issue for others: https://github.com/nextauthjs/next-auth/issues/405#issuecomment-655191078
but i would like some help regarding how to setup my vercel deployment for API + console
i added my github token to environment. what should i set the root directory to and what should i set the build command and install command to
thanks for helping me out above
h
@Agusti @zomars can help
a
Hey Jimmy, console you dont need to deploy, only use through console.cal.com
Will share the custom settings for api vercel build command in a minute
And you need to provide DATABASE_URL as env var to API
j
ok thanks
a
Build command yarn turbo run build --scope=@calcom/api --include-dependencies --no-deps
Output dir apps/api/.next
z
We should add to our docs step by step instructions on how to deploy to vercel
👍 3
🙏 1
j
can you also share the main web vercel settings just so i can compare what i did
i didn’t see any
@calcom/api
turbo build fields in turbo.json, is that part of v1.6.3 or the latest branch
a
Yeah api uses transpile modules but not part of the turborepo pipelines
Scripts/deploy-vercel.sh
Build command for web cd ../.. && yarn deploy --include-dependencies --no-deps --force
@zomars yeah I was thinking the same will add to readme
🙏 1