Skip to content

Add deployment-specific Vercel variables to .env.example#10

Merged
jalexw merged 2 commits into
mainfrom
claude/friendly-wright-ObEs5
May 29, 2026
Merged

Add deployment-specific Vercel variables to .env.example#10
jalexw merged 2 commits into
mainfrom
claude/friendly-wright-ObEs5

Conversation

@jalexw

@jalexw jalexw commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR makes the .env.example template deployment-aware by conditionally including Vercel-specific environment variables when the deployment strategy is set to "vercel".

Key Changes

  • Modified exampleEnvTemplate() to accept a DeploymentStrategy parameter and conditionally include Vercel configuration variables (VERCEL_PROJECT_ID, VERCEL_ORG_ID, VERCEL_TOKEN) when deployment is "vercel"
  • Updated the scaffold function to pass the deployment parameter to exampleEnvTemplate()
  • Enhanced test assertions to verify:
    • .env.example file is created in all cases
    • Vercel-specific variables are present when --deployment vercel is used
    • Vercel-specific variables are absent when --deployment none is used

Implementation Details

  • The Vercel section is conditionally rendered as a template string that's either populated or empty based on the deployment strategy
  • The generated .env.example now provides users with the exact environment variables they need based on their chosen deployment platform, improving the developer experience during project setup

https://claude.ai/code/session_018ACPAkNMuUhXQ8bsBG1RyY

claude added 2 commits May 29, 2026 16:42
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
@jalexw jalexw self-assigned this May 29, 2026
@jalexw jalexw merged commit 6d1f0e2 into main May 29, 2026
3 checks passed
@jalexw jalexw deleted the claude/friendly-wright-ObEs5 branch May 29, 2026 19:13
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.

2 participants