Route QStash workflows to the PR deployment URL#4023
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR updates domain constant resolution and QStash workflow integration to support Vercel preview deployments. The ChangesVercel Preview Domain Support
🎯 2 (Simple) | ⏱️ ~8 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/utils/src/constants/main.ts`:
- Around line 24-26: APP_HOSTNAMES is out of sync with APP_DOMAIN_WITH_NGROK
which can resolve to `https://${process.env.VERCEL_URL}`; update the allowlist
so it includes both `preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}` and the
hostname derived from `process.env.VERCEL_URL` (and fallback behavior when
VERCEL_URL is unset). Locate APP_DOMAIN_WITH_NGROK and APP_HOSTNAMES in the file
and add the VERCEL-derived hostname to APP_HOSTNAMES (or compute APP_HOSTNAMES
from APP_DOMAIN_WITH_NGROK) so host-dependent checks accept both preview.* and
*.vercel.app hosts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 0e403e67-0b47-4998-b7b0-11d74b2854bb
📒 Files selected for processing (2)
apps/web/lib/cron/qstash-workflow.tspackages/utils/src/constants/main.ts
Summary by CodeRabbit