Skip to content
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

Only trigger build for the relevant app, depending on commits #244

Open
michaelrambeau opened this issue Nov 3, 2023 · 1 comment
Open

Comments

@michaelrambeau
Copy link
Member

michaelrambeau commented Nov 3, 2023

Every commit in the monorepo triggers a rebuild of the 2 applications:

  • the Next.js app (bestofjs project on Vercel)
  • the SPA available at classic.bestofjs.org (bestofjs-classic project on Vercel)

Most of the time we want to re-build only one application.

Could we setup something to build only the application that is related to the commit instead of all applications?

It's important as we plan to add more apps (backend) in the future.

About monorepos in Vercel docs: https://vercel.com/docs/monorepos

Once you've created a separate Project for each of the directories within your Git repository, every commit will issue a Deployment for all connected Projects and display the resulting URLs on your pull requests and commits

If you want to abort the Build Step for certain projects if their files didn't change, you can do so with the Ignored Build Step project setting.

@michaelrambeau
Copy link
Member Author

michaelrambeau commented Nov 3, 2023

Setup from Vercel dashboard

I updated the setup of bestofjs-classic to take into account only commits related to files insides apps/bestofjs-webui:

Image

It works, as mentioned in the here: #243 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant