Skip to content
skillcellar
All skills

persist-env-var-with-rebuild

Indexed

Make a BUILD-TIME environment variable survive a production redeploy. Use whenever a feature needs a value baked at build — any NEXT_PUBLIC_* (inlined into the browser bundle), the language set, Stripe keys + product ids, a custom API/DB URL, a feature flag, analytics IDs. Write the value into the slot's own app/.env.local through the proper setter, then trigger a rebuild: the slot-scoped build bakes the slot's own .env.local. Use when adding payments, a new integration key, a feature flag, or any value the app reads at build time — and to avoid the silent "saved but the app never sees it" bug. Self-sufficient: works for a lone agent.

Indexed automatically from public GitHub, not reviewed. This page shows what the skill’s SKILL.md says about itself and what the scan flagged in it. It cannot show that the skill is safe. Read its files on GitHub before you install it.

Install

install

$ npx skills add https://github.com/Fractera/web4-node-starter-kit --skill persist-env-var-with-rebuild

The skills CLI downloads the skill from GitHub when you run the command, so what you get may have changed since the scan.

Scan

The scan flagged nothing in SKILL.md when it was last read. It doesn’t read the skill’s other files, and a clean scan doesn’t prove a skill is safe.

Copies

No other indexed repository has this exact folder.