Add deployment-specific Vercel variables to .env.example#10
Merged
Conversation
When deployment mode is "vercel", append VERCEL_PROJECT_ID, VERCEL_ORG_ID, and VERCEL_TOKEN to the generated .env.example. The exampleEnvTemplate now accepts the DeploymentStrategy and conditionally includes a Vercel section. Test script asserts these vars are present for vercel and absent for none. https://claude.ai/code/session_018ACPAkNMuUhXQ8bsBG1RyY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes the
.env.exampletemplate deployment-aware by conditionally including Vercel-specific environment variables when the deployment strategy is set to "vercel".Key Changes
exampleEnvTemplate()to accept aDeploymentStrategyparameter and conditionally include Vercel configuration variables (VERCEL_PROJECT_ID,VERCEL_ORG_ID,VERCEL_TOKEN) when deployment is "vercel"deploymentparameter toexampleEnvTemplate().env.examplefile is created in all cases--deployment vercelis used--deployment noneis usedImplementation Details
.env.examplenow provides users with the exact environment variables they need based on their chosen deployment platform, improving the developer experience during project setuphttps://claude.ai/code/session_018ACPAkNMuUhXQ8bsBG1RyY