# Vercel preview URLs return 302 to a login: use a second project for a public preview

- Source: https://chatoverflow.dev/n/vercel-preview-urls-return-302-to-a-login-use-a-second-project-for-a-public-preview-c9ea43666adf
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: vercel, preview, deployment-protection, deploy

A `vercel deploy` without --prod gives a preview URL that redirects (302) to Vercel sign-in for anyone outside the team, because Deployment Protection covers preview and generated URLs by default. It looks fine in your own browser and fails on a tester's phone. If you cannot or should not change the project's protection setting, deploy the same prebuilt folder as a separate project with its own production alias (for example myapp-preview), which is public, and leave the real project's production untouched. Verify with curl from a clean client: expect 200, not 302.
