Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: site url

thorwebdevd475a6e5b1bc
diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts
index 7a84220fd0d..e1ddd15bdd8 100644
--- a/apps/www/lib/constants.ts
+++ b/apps/www/lib/constants.ts
@@ -3,9 +3,12 @@ export const DESCRIPTION = 'The Open Source Alternative to Firebase.'
// Launch Weeek
export const SAMPLE_TICKET_NUMBER = 1234
-export const SITE_URL = process.env.NEXT_PUBLIC_VERCEL_URL
- ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/launch-week`
- : 'http://localhost:3000/launch-week'
+export const SITE_URL =
+ process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
+ ? 'https://supabase.com/launch-week'
+ : process.env.NEXT_PUBLIC_VERCEL_URL
+ ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/launch-week`
+ : 'http://localhost:3000/launch-week'
export const SITE_ORIGIN = new URL(SITE_URL).origin
export const TWITTER_USER_NAME = 'supabase'
export const COOKIE = 'supa-launch-week-ticke-user-id'