How environments work
Every Codika use case has two environments:| Environment | Purpose | Created when |
|---|---|---|
| Dev | Testing by the creator | First codika deploy |
| Prod | Live usage by all users | codika publish |
- Process instance ID — different URL path for triggers
- API key (
ck_) — different credentials - n8n workflows — separate copies with separate execution history
Configuration pattern
Structure your app’s configuration around environments:Environment variables
Where to find instance IDs
- Dev instance ID: In
project.jsonafter deploying (devProcessInstanceId) - Prod instance ID: In
project.jsonafter publishing (prodProcessInstanceId) - Both: Visible in the Codika dashboard under your process
Mode switching in your app
A common pattern is to let the app creator toggle between dev and prod:What changes between environments
| Dev | Prod | |
|---|---|---|
| Process instance ID | Different | Different |
Codika API key (ck_) | Different | Different |
| Workflow versions | Latest deployed | Latest published |
| Trigger/status base URLs | Same | Same |
| Your own database | Up to you (can share or separate) | Up to you |
Typical flow
- Development: Deploy use case → get dev instance ID and API key → test with your dashboard
- Ready for production: Publish the use case → get prod instance ID and API key → update your
.env - New version: Deploy again → dev updates automatically → test → publish → prod updates for all users
- Parameter changes: Use
codika redeployto update parameters on dev or prod without creating a new version — only changed parameters are sent, and the platform merges them with existing values