Skip to content

Conversation

cprussin
Copy link
Collaborator

Summary

Do not build packages that rely on the Vercel environment using turbo build, instead move them to build with turbo build:vercelonly

Rationale

For many of our UI applications, in order to build the package, a number of environment variables must be present.

The values for these env vars are stored in Vercel, however not everyone who contributes to this repository will have access to Vercel.

This PR modifies the turbo config to not build those packages on turbo build. This is generally probably the right thing since we don't want those packages to build in Github Actions either, given the environment is not going to be present in GHA and so the builds would likely fail there too.

After this PR, to build any packages that rely on Vercel environments, you will run turbo build:vercelonly. Running turbo build will build everything else and will exclude anything that depends on the Vercel env.

How has this been tested?

CI will be the test

@cprussin cprussin requested a review from a team as a code owner March 26, 2025 16:19
Copy link

vercel bot commented Mar 26, 2025

Deployment failed with the following error:

The `vercel.json` schema validation failed with the following message: should NOT have additional property `buildCommant`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

Copy link

vercel bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 4:32pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 4:32pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 4:32pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 4:32pm
proposals 🛑 Canceled (Inspect) Mar 26, 2025 4:32pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 4:32pm

Copy link

vercel bot commented Mar 26, 2025

Deployment failed with the following error:

The `vercel.json` schema validation failed with the following message: should NOT have additional property `buildCommand wj`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

@cprussin cprussin force-pushed the cprussin/dont-build-vercel-stuff branch 2 times, most recently from 91ce3c6 to 3d501cd Compare March 26, 2025 16:22
For many of our UI applications, in order to build the package, a number of
environment variables must be present.

The values for these env vars are stored in Vercel, however not everyone who
contributes to this repository will have access to Vercel.

This PR modifies the turbo config to not build those packages on `turbo build`.
This is generally probably the right thing since we don't want those packages to
build in Github Actions either, given the environment is not going to be present
in GHA and so the builds would likely fail there too.

After this PR, to build any packages that rely on Vercel environments, you will
run `turbo build:vercelonly`.  Running `turbo build` will build everything else
and will exclude anything that depends on the Vercel env.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant