Projects
Environment
Manage development vs production environments, sandbox data, and seamless promotion workflows.
Overview
Every Asiyst project provides isolated Development and Production environments to ensure testing never pollutes live analytics or disrupts active customer sessions.
Development vs Production Comparison
| Feature | Development (pk_test_) | Production (pk_live_) |
|---|---|---|
| Domain Whitelist | Relaxed (accepts localhost, 127.0.0.1) | Strict (whitelisted origins only) |
| Debug Logging | Verbose console output enabled | Minimized production logging |
| Telemetry Storage | Isolated sandbox metrics | Live customer analytics |
| Rate Limiting | Standard developer tier limits | High-concurrency enterprise tier |
Switching Environments in the SDK
Asiyst.init({
projectId: "proj_9f8a2b3c4d",
publicKey: process.env.NODE_ENV === "production"
? process.env.NEXT_PUBLIC_ASIYST_LIVE_KEY!
: process.env.NEXT_PUBLIC_ASIYST_TEST_KEY!,
});