Skip to content

feat: support external template referral codes#791

Open
clawdvader wants to merge 1 commit into
Merit-Systems:masterfrom
clawdvader:feat/template-referral-code
Open

feat: support external template referral codes#791
clawdvader wants to merge 1 commit into
Merit-Systems:masterfrom
clawdvader:feat/template-referral-code

Conversation

@clawdvader
Copy link
Copy Markdown

/attempt #612

Summary

  • add support for external templates to ship echo.config.json with a referralCode / referral_code
  • when echo-start --template https://github.com/... scaffolds an external template, it writes the referral code into .env.local using the detected framework public env var prefix
  • remove echo.config.json from the scaffolded app after reading it so template metadata does not leak into the user project
  • update the React referral hook to accept the docs-standard referral_code query param and public env referral variables generated by echo-start

Verification

  • pnpm --filter echo-start build
  • pnpm --filter @merit-systems/echo-react-sdk build
  • git diff --check

Closes #612

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 11, 2026

@clawdvader is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

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.

Template referral system

1 participant