Deployment Status Shows Error Due to Authentication Redirect

What’s Happening

Hey there! We’ve got an edge-case issue where our app always shows up with an error icon and a broken screenshot in the Vercel dashboard. This happens because our monorepo app homepage redirects to WorkOS’s login form, but the dynamic deployment URLs can’t be pre-configured in WorkOS for production. Our preview deployments work fine because WorkOS allows wildcard domains in staging environments, but not in production.

What Should Happen

Our app should show as healthy in the dashboard since it’s actually working fine when accessed through our proper domains.

Why It’s Happening

The dashboard is trying to take a screenshot of our app using the dynamic deployment URL (like https://example-monorepo-abcd12345-acme.vercel.app). Since that URL changes with each deployment and WorkOS doesn’t allow wildcard redirects in production, it shows an auth error.

The Domain Situation

Possible Solution

Would it be possible to have Vercel use one of our static domains (either our custom domain or the static preview URL) for the status check and screenshot instead of the dynamic deployment URL? I know this probably has a bunch of other implications…

Thanks!