Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Vercel seems to be broken for free plan #3562

Closed
nosovk opened this issue Jul 28, 2022 · 5 comments
Closed

Deploy to Vercel seems to be broken for free plan #3562

nosovk opened this issue Jul 28, 2022 · 5 comments

Comments

@nosovk
Copy link
Contributor

nosovk commented Jul 28, 2022

Issue Summary

I've created a new deployment of cal.com, but it seems to be broken.

Steps to Reproduce

  1. Fork Project
  2. Connect to Vercel
  3. setup custom build options

image

4. Build Get response form build system: No more than 12 Serverless Functions can be added to a Deployment on the Hobby plan

image

@nosovk
Copy link
Contributor Author

nosovk commented Jul 28, 2022

It seems that it was broken some time before, I found the same problem here

@sagararyal
Copy link
Contributor

@nosovk
I don't think it will run on free plan due to serverless function size, as i get the following error on the pro plan:
Screenshot 2022-07-28 at 5 00 58 PM

however few other things that can be documented well:

You need to change your build code, either remove the root dir, or remove cd ../.. from the build command. I had to try this several times until a successful build.
Screenshot 2022-07-28 at 4 58 35 PM

the other thing i had to add as I am using supabase is

  • append ?pgbouncer=true to database url.
  • add env PGSSLMODE = no-verify

@nosovk
Copy link
Contributor Author

nosovk commented Jul 28, 2022

According to docs serverless-function-size is the same for all plans, and came due to underlain AWS. In common config proposed by you seems to be more logical compared to one from docs.

@sagararyal
Copy link
Contributor

sagararyal commented Jul 28, 2022

@nosovk True the size seems to be same. Then someone needs to reduce the count of serverless functions; which seems to be impossible in this project as there are 1370 serverless functions (mostly language based pages) so the real number is around 40 or so. Vercel limit for hobby plan is 12.
https://vercel.com/docs/concepts/limits/overview#serverless-functions-created-per-deployment
Screenshot 2022-07-28 at 7 47 02 PM

Regarding build: After my first successful build, i was also able to build successfully using the cd ../.. build code along with the custom directory. Not sure what the difference is.

Update:
I believe the goal of cd ../.. && yarn build is to deploy prisma build commands and populate seed-app-store.

@nosovk
Copy link
Contributor Author

nosovk commented Jul 28, 2022

Probably should mention in docs that free vercel is not ok to host cal.com

@calcom calcom locked and limited conversation to collaborators Jul 29, 2022
@PeerRich PeerRich converted this issue into discussion #3596 Jul 29, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants