The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: fix the redirectUrl for preview deployments in vercel (#29149)
Sarthak Gupta681f95b21afb
diff --git a/apps/docs/content/guides/auth/redirect-urls.mdx b/apps/docs/content/guides/auth/redirect-urls.mdxindex dbdb1a94e5e..92b225af67e 100644--- a/apps/docs/content/guides/auth/redirect-urls.mdx+++ b/apps/docs/content/guides/auth/redirect-urls.mdx@@ -53,7 +53,7 @@ For deployments with Netlify, set the `SITE_URL` to your official site URL. AddFor deployments with Vercel, set the `SITE_URL` to your official site URL. Add the following additional redirect URLs for local development and deployment previews:- `http://localhost:3000/**`-- `https://*-username.vercel.app/**`+- `https://*-<team-or-account-slug>.vercel.app/**`Vercel provides an environment variable for the URL of the deployment called `NEXT_PUBLIC_VERCEL_URL`. See the [Vercel docs](https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables) for more details. You can use this variable to dynamically redirect depending on the environment. You should also set the value of the environment variable called NEXT_PUBLIC_SITE_URL, this should be set to your site URL in production environment to ensure that redirects function correctly.