docs(clarity): document env var name and call out common mistake#774
docs(clarity): document env var name and call out common mistake#774harlan-zw wants to merge 1 commit into
Conversation
Add an environment variables section to the Clarity docs showing the correct `NUXT_PUBLIC_SCRIPTS_CLARITY_ID` env var (registry key is `clarity`, not `microsoftClarity`), matching the convention used by other registry entries. Closes #769.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
📝 WalkthroughWalkthroughThis PR updates the Clarity documentation to include a new "With Environment Variables" section. The addition clarifies how to configure the Clarity project ID via an environment variable using the registry-derived key name Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing - the Environment Variables tab in ScriptDocs.vue already auto-generates this from the registry ( |
🔗 Linked issue
Resolves #769
❓ Type of change
📚 Description
The reporter set
NUXT_PUBLIC_SCRIPTS_MICROSOFT_CLARITY_ID=...and expected it to populatescripts.clarity.id. That env var doesn't match any runtimeConfig path (public.scripts.clarity.id↔NUXT_PUBLIC_SCRIPTS_CLARITY_ID), so the id serialized as"". The auto env-default population added in #762 already reads the correct key for Clarity (envDefaults: { id: '' }inregistry.ts), so no code change is needed; this is a docs/discoverability gap.Adds an Environment Variables section to the Clarity docs (was missing, unlike Crisp / Intercom / GTM) and explicitly calls out that the env var follows the registry key (
clarity), not the marketing name.