Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Auth That Just Works in Vercel Previews

Blog post from Neon

Post Details
Company
Date Published
Author
Shridhar
Deshmukh
Word Count
1,047
Language
English
Hacker News Points
-
Summary

Neon has enhanced its integration with Vercel by automating authentication for every preview deployment, providing each deployment with a dedicated authentication endpoint. This update builds on the existing setup where Vercel preview deployments automatically receive isolated Postgres database branches from Neon. The integration supports two configurations: Vercel-managed and Neon-managed, both facilitating isolated environments for testing. The new feature leverages Neon Auth, a managed authentication layer that integrates seamlessly with Neon's platform, ensuring that authentication data is scoped to specific branches. This setup allows developers to safely test real authentication flows during the preview phase without additional configuration or maintenance. When a preview deployment is removed, the corresponding database branch and associated authentication instance are automatically cleaned up. This integration streamlines workflows by linking database branching and authentication provisioning, enabling developers to test changes, like new OAuth providers, in an isolated environment before merging them into production.