Skip to content

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

[www] clean up lib/constants file (#38241)

Francesco Sansalvadore573ad831d2d8
diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts
index 2a4280f607c..ae20767f23c 100644
--- a/apps/www/lib/constants.ts
+++ b/apps/www/lib/constants.ts
@@ -25,9 +25,6 @@ export enum PRODUCT_SHORTNAMES {
VECTOR = 'vector',
}
-// Launch Week
-export const SAMPLE_TICKET_NUMBER = 1234
-
export const SITE_ORIGIN =
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
? 'https://supabase.com'
@@ -35,23 +32,11 @@ export const SITE_ORIGIN =
? `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL}`
: 'http://localhost:3000'
-export const LW_URL = `${SITE_ORIGIN}/launch-week/13`
+export const LW_URL = `${SITE_ORIGIN}/launch-week`
-export const TWITTER_USER_NAME = 'supabase'
-export const LW7_DATE = 'April 10th 2023'
-export const LW8_DATE = 'August 7-11'
-export const LW8_LAUNCH_DATE = '2023-08-07T09:00:00.000-07:00'
-export const LWX_DATE = 'Dec 11-15 / 8am PT'
-export const LWX_LAUNCH_DATE = '2023-12-11T08:00:00.000-07:00'
-export const LW11_DATE = 'April 15-19 / 7am PT'
-export const LW11_LAUNCH_DATE = '2024-04-15T07:00:00.000-07:00'
export const LW12_DATE = 'August 12-16 / 7am PT'
-export const LW12_LAUNCH_DATE = '2024-08-12T07:00:00.000-07:00'
-export const LW12_LAUNCH_DATE_END = '2024-08-18T23:59:59.000-07:00'
export const LW12_TITLE = 'Launch Week 12'
export const LW13_DATE = '2 — 6 December / 7am PT'
-export const LW13_LAUNCH_DATE = '2024-12-02T07:00:00.000-07:00'
-export const LW13_LAUNCH_DATE_END = '2024-12-16T23:59:59.000-07:00'
export const LW13_TITLE = 'Launch Week 13'
export const TWEET_TEXT =
'Launch Week 13 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'
@@ -59,19 +44,10 @@ export const TWEET_TEXT_PLATINUM = `Just conquered a platinum @supabase Launch W
export const TWEET_TEXT_SECRET = `Found the secret golden ticket for @supabase's Launch Week 13. \nCan you find it? \n#launchweek`
export const LW14_DATE = '31 March — 4 April / 7am PT'
-export const LW14_LAUNCH_DATE = '2025-03-31T07:00:00.000-07:00'
-export const LW14_LAUNCH_DATE_END = '2025-04-04T23:59:59.000-07:00'
export const LW14_TITLE = 'Launch Week 14'
-export const LW14_TWEET_TEXT =
- 'Launch Week 14 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'
-export const LW14_TWEET_TEXT_PLATINUM =
- 'Just conquered a platinum @supabase Launch Week 14 ticket. Share twice to get one! \n#launchweek'
-export const LW14_TWEET_TEXT_SECRET = `Found the secret golden ticket for @supabase's Launch Week 14. \nCan you find it? \n#launchweek`
export const LW14_URL = `${SITE_ORIGIN}/launch-week`
export const LW15_DATE = '14 — 18 Jul / 8am PT'
-export const LW15_LAUNCH_DATE = '2025-07-14T08:00:00.000-07:00'
-export const LW15_LAUNCH_DATE_END = '2025-07-14T23:59:59.000-07:00'
export const LW15_TITLE = 'Launch Week 15'
export const LW15_TWEET_TEXT =
'Launch Week 15 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'
diff --git a/apps/www/pages/launch-week/12/index.tsx b/apps/www/pages/launch-week/12/index.tsx
index e5435f0193d..ae469886958 100644
--- a/apps/www/pages/launch-week/12/index.tsx
+++ b/apps/www/pages/launch-week/12/index.tsx
@@ -73,7 +73,7 @@ export default function LaunchWeekIndex() {
openGraph={{
title: TITLE,
description: DESCRIPTION,
- url: LW_URL,
+ url: `${LW_URL}/12`,
images: [
{
url: OG_IMAGE,
diff --git a/apps/www/pages/launch-week/13/index.tsx b/apps/www/pages/launch-week/13/index.tsx
index 751a2a85125..5881ed1202d 100644
--- a/apps/www/pages/launch-week/13/index.tsx
+++ b/apps/www/pages/launch-week/13/index.tsx
@@ -68,7 +68,7 @@ export default function LaunchWeekIndex() {
openGraph={{
title: TITLE,
description: DESCRIPTION,
- url: LW_URL,
+ url: `${LW_URL}/13`,
images: [
{
url: OG_IMAGE,
diff --git a/apps/www/pages/launch-week/7/index.tsx b/apps/www/pages/launch-week/7/index.tsx
index 8e143038ccb..0d334c08232 100644
--- a/apps/www/pages/launch-week/7/index.tsx
+++ b/apps/www/pages/launch-week/7/index.tsx
@@ -28,7 +28,7 @@ export default function TicketHome() {
openGraph={{
title: TITLE,
description: DESCRIPTION,
- url: LW_URL,
+ url: `${LW_URL}/7`,
images: [
{
url: OG_IMAGE,
diff --git a/apps/www/pages/launch-week/8/index.tsx b/apps/www/pages/launch-week/8/index.tsx
index 8ec8a2c338a..611a7e01a12 100644
--- a/apps/www/pages/launch-week/8/index.tsx
+++ b/apps/www/pages/launch-week/8/index.tsx
@@ -96,7 +96,7 @@ export default function TicketHome() {
openGraph={{
title: TITLE,
description: DESCRIPTION,
- url: LW_URL,
+ url: `${LW_URL}/8`,
images: [
{
url: OG_IMAGE,
diff --git a/apps/www/pages/launch-week/x/index.tsx b/apps/www/pages/launch-week/x/index.tsx
index 38d5fc507ca..86b9c02a3fb 100644
--- a/apps/www/pages/launch-week/x/index.tsx
+++ b/apps/www/pages/launch-week/x/index.tsx
@@ -91,7 +91,7 @@ export default function LaunchWeekIndex({ meetups }: Props) {
openGraph={{
title: TITLE,
description: DESCRIPTION,
- url: LW_URL,
+ url: `${LW_URL}/x`,
images: [
{
url: OG_IMAGE,