vercel/academy-starters/shipping-zones-buildtime
Claude Code and agent skill by vercel/academy-starters
- vendor
Checking that the SKILL.md file is still in the repository.
Explains that config/shipping-zones.ts is read at build time and dev edits do not take effect until rebuild. Use when the user edits shipping zones, asks about adding a zone, or reports unexpected 404s at /shipping routes.
Install
npx vskill@latest install vercel/academy-starters/shipping-zones-buildtimeSKILL.md
Shipping zones are locked at build time
config/shipping-zones.ts exports the array that drives both the shipping rate calculator (lib/shipping.ts) and the static /shipping/[zone] routes.
The route file (app/shipping/[zone]/page.tsx) uses generateStaticParams and sets dynamicParams = false. Both choices mean the list of zones is baked into the build output. Editing the array in dev does not add or remove routes.
How to apply this
- Adding a zone: edit
config/shipping-zones.ts, then rebuild. In production, that means redeploying. Locally, that means restartingnext dev(which re-evaluatesgenerateStaticParams). - Reading a zone's rate: use
getShippingRate(code)from@/lib/shipping. Never hardcode rates. - Suspecting a stale build: if a newly-added zone returns 404 from
/shipping/<code>, the build is stale.
Why this matters
In a typical Next.js app, file edits during next dev show up immediately. This file is the exception. The combination of:
generateStaticParamsreadsSHIPPING_ZONESat build timedynamicParams = falserejects any zone code not in the build manifest
…means the dev server can be running stale params even while the rest of the app updates. This has bitten on-call engineers more than once.
The canonical warning is in the file header comment at the top of config/shipping-zones.ts.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 27 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbuilding-agent-plugins/complete/pretzel-onboarding/skills/shipping-zones-buildtime/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vercel/academy-starters/shipping-zones-buildtime)