-
feat(core): add A/B testing variant 1 to skip cloud prompt in CNW (#34106)
发布于
2026-01-20 21:44:00 +00:00 Current Behavior
CNW always shows the "Try the full Nx platform?" prompt and connects to
Nx Cloud to generate an onboarding URL with a token.Expected Behavior
For A/B testing variant 1:
- Skip cloud prompt
- Skip connectToNxCloudForTemplate() - no nxCloudId in nx.json
- Skip readNxCloudToken() - no misleading spinner
- Use GitHub flow for URL generation (accessToken: null)
- Show github.com/new hint when user hasn't pushed
Also fixes:
- Expired cache file bug: now deletes with unlinkSync() instead of
ignoring, which caused 50-50 randomization after 1-week expiry - Adds variant-X to short URL meta property for cloud analytics
Related Issue(s)
Closes NXC-3628
Co-authored-by: Claude Opus 4.5 noreply@anthropic.com
下载附件