clerk-multi-env-setup
Installation
SKILL.md
Clerk Multi-Environment Setup
Overview
Configure Clerk across development, staging, and production environments with separate instances, environment-aware configuration, and safe promotion workflows.
Prerequisites
- Clerk account (one instance per environment recommended)
- CI/CD pipeline (GitHub Actions, Vercel, etc.)
- Environment variable management in place
Instructions
Step 1: Create Clerk Instances
Create separate Clerk instances in the Dashboard for each environment:
| Environment | Instance | Key Prefix | Domain |
|---|---|---|---|
| Development | my-app-dev | pk_test_ / sk_test_ |
localhost:3000 |
| Staging | my-app-staging | pk_test_ / sk_test_ |
staging.myapp.com |
| Production | my-app-prod | pk_live_ / sk_live_ |
myapp.com |