Skip to content

Commit 573ad83

Browse files
[www] clean up lib/constants file (supabase#38241)
clean up www lib/constants file
1 parent 8920005 commit 573ad83

File tree

6 files changed

+6
-30
lines changed

6 files changed

+6
-30
lines changed

apps/www/lib/constants.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,29 @@ export enum PRODUCT_SHORTNAMES {
2525
VECTOR = 'vector',
2626
}
2727

28-
// Launch Week
29-
export const SAMPLE_TICKET_NUMBER = 1234
30-
3128
export const SITE_ORIGIN =
3229
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
3330
? 'https://supabase.com'
3431
: process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL
3532
? `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL}`
3633
: 'http://localhost:3000'
3734

38-
export const LW_URL = `${SITE_ORIGIN}/launch-week/13`
35+
export const LW_URL = `${SITE_ORIGIN}/launch-week`
3936

40-
export const TWITTER_USER_NAME = 'supabase'
41-
export const LW7_DATE = 'April 10th 2023'
42-
export const LW8_DATE = 'August 7-11'
43-
export const LW8_LAUNCH_DATE = '2023-08-07T09:00:00.000-07:00'
44-
export const LWX_DATE = 'Dec 11-15 / 8am PT'
45-
export const LWX_LAUNCH_DATE = '2023-12-11T08:00:00.000-07:00'
46-
export const LW11_DATE = 'April 15-19 / 7am PT'
47-
export const LW11_LAUNCH_DATE = '2024-04-15T07:00:00.000-07:00'
4837
export const LW12_DATE = 'August 12-16 / 7am PT'
49-
export const LW12_LAUNCH_DATE = '2024-08-12T07:00:00.000-07:00'
50-
export const LW12_LAUNCH_DATE_END = '2024-08-18T23:59:59.000-07:00'
5138
export const LW12_TITLE = 'Launch Week 12'
5239
export const LW13_DATE = '2 — 6 December / 7am PT'
53-
export const LW13_LAUNCH_DATE = '2024-12-02T07:00:00.000-07:00'
54-
export const LW13_LAUNCH_DATE_END = '2024-12-16T23:59:59.000-07:00'
5540
export const LW13_TITLE = 'Launch Week 13'
5641
export const TWEET_TEXT =
5742
'Launch Week 13 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'
5843
export const TWEET_TEXT_PLATINUM = `Just conquered a platinum @supabase Launch Week 13 ticket. Share twice to get one! \n#launchweek`
5944
export const TWEET_TEXT_SECRET = `Found the secret golden ticket for @supabase's Launch Week 13. \nCan you find it? \n#launchweek`
6045

6146
export const LW14_DATE = '31 March — 4 April / 7am PT'
62-
export const LW14_LAUNCH_DATE = '2025-03-31T07:00:00.000-07:00'
63-
export const LW14_LAUNCH_DATE_END = '2025-04-04T23:59:59.000-07:00'
6447
export const LW14_TITLE = 'Launch Week 14'
65-
export const LW14_TWEET_TEXT =
66-
'Launch Week 14 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'
67-
export const LW14_TWEET_TEXT_PLATINUM =
68-
'Just conquered a platinum @supabase Launch Week 14 ticket. Share twice to get one! \n#launchweek'
69-
export const LW14_TWEET_TEXT_SECRET = `Found the secret golden ticket for @supabase's Launch Week 14. \nCan you find it? \n#launchweek`
7048
export const LW14_URL = `${SITE_ORIGIN}/launch-week`
7149

7250
export const LW15_DATE = '14 — 18 Jul / 8am PT'
73-
export const LW15_LAUNCH_DATE = '2025-07-14T08:00:00.000-07:00'
74-
export const LW15_LAUNCH_DATE_END = '2025-07-14T23:59:59.000-07:00'
7551
export const LW15_TITLE = 'Launch Week 15'
7652
export const LW15_TWEET_TEXT =
7753
'Launch Week 15 is just around the corner at @supabase. \nClaim your ticket and stay tuned for all the announcements! \n#launchweek'

apps/www/pages/launch-week/12/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function LaunchWeekIndex() {
7373
openGraph={{
7474
title: TITLE,
7575
description: DESCRIPTION,
76-
url: LW_URL,
76+
url: `${LW_URL}/12`,
7777
images: [
7878
{
7979
url: OG_IMAGE,

apps/www/pages/launch-week/13/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function LaunchWeekIndex() {
6868
openGraph={{
6969
title: TITLE,
7070
description: DESCRIPTION,
71-
url: LW_URL,
71+
url: `${LW_URL}/13`,
7272
images: [
7373
{
7474
url: OG_IMAGE,

apps/www/pages/launch-week/7/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function TicketHome() {
2828
openGraph={{
2929
title: TITLE,
3030
description: DESCRIPTION,
31-
url: LW_URL,
31+
url: `${LW_URL}/7`,
3232
images: [
3333
{
3434
url: OG_IMAGE,

apps/www/pages/launch-week/8/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default function TicketHome() {
9696
openGraph={{
9797
title: TITLE,
9898
description: DESCRIPTION,
99-
url: LW_URL,
99+
url: `${LW_URL}/8`,
100100
images: [
101101
{
102102
url: OG_IMAGE,

apps/www/pages/launch-week/x/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default function LaunchWeekIndex({ meetups }: Props) {
9191
openGraph={{
9292
title: TITLE,
9393
description: DESCRIPTION,
94-
url: LW_URL,
94+
url: `${LW_URL}/x`,
9595
images: [
9696
{
9797
url: OG_IMAGE,

0 commit comments

Comments
 (0)