The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
new /events page (#40222)
Alan Daniel4d7b66888d53
diff --git a/apps/www/.env b/apps/www/.envindex f7c55038f4b..20b7e81d5ce 100644--- a/apps/www/.env+++ b/apps/www/.env@@ -8,4 +8,4 @@ NEXT_PUBLIC_URL="http://localhost:3000"NEXT_PUBLIC_DOCS_URL="http://localhost:3001"NEXT_PUBLIC_STUDIO_URL="http://localhost:8082"NEXT_PUBLIC_REFERENCE_DOCS_URL="http://localhost:3010"-NEXT_PUBLIC_UI_LIBRARY_URL="http://localhost:3004"\ No newline at end of file+NEXT_PUBLIC_UI_LIBRARY_URL="http://localhost:3004"diff --git a/apps/www/.gitignore b/apps/www/.gitignoreindex 0bd436d06ba..16d2ef1ae15 100644--- a/apps/www/.gitignore+++ b/apps/www/.gitignore@@ -30,3 +30,5 @@ public/sitemap.xml# contentlayer.contentlayer+.vercel+.env*.localdiff --git a/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx b/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdxindex 2a60abd9270..296850c3a7a 100644--- a/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx+++ b/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx@@ -1,29 +1,37 @@---title: 'Scale to Millions: Generative AI / Humata'meta_title: 'Scale to Millions: Generative AI / Humata'-subtitle: 'Quickly and cost effectively build Generative AI applications that you can use to chat with your company’s documents.'-meta_description: 'Quickly and cost effectively build Generative AI applications that you can use to chat with your company’s documents.'-type: 'webinar'+subtitle: >-+ Quickly and cost effectively build Generative AI applications that you can use+ to chat with your company’s documents.+meta_description: >-+ Quickly and cost effectively build Generative AI applications that you can use+ to chat with your company’s documents.+type: webinaronDemand: truedate: '2024-08-21T10:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '45 mins'+timezone: America/Los_Angeles+duration: 45 minscompany:- {- name: 'Humata',- website_url: 'https://www.humata.ai/',- logo: '/images/events/webinars/scale-to-millions-generative-ai-humata/humata-dark.svg',- logo_light: '/images/events/webinars/scale-to-millions-generative-ai-humata/humata-light.svg',- }+ name: Humata+ website_url: 'https://www.humata.ai/'+ logo: >-+ /images/events/webinars/scale-to-millions-generative-ai-humata/humata-dark.svg+ logo_light: >-+ /images/events/webinars/scale-to-millions-generative-ai-humata/humata-light.svgcategories:- webinarmain_cta:- {- url: 'https://zoom.us/webinar/register/WN_cTcp6uv4S2OI63jDrOb1Ng',- target: '_blank',- label: 'Watch now',- }+ url: 'https://zoom.us/webinar/register/WN_cTcp6uv4S2OI63jDrOb1Ng'+ target: _blank+ label: Watch nowspeakers: 'gregnr,khajvandi'+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Learn how to build modern Generative AI applications that let you chat with+ your PDFs for customer support, summarization, and business intelligence.---Is your organization still using search to find information stored in your business documents? Learn about building modern Generative AI applications that allow you to chat with your PDFs to provide customer support, summarize complex text, answer contract questions, or deliver business intelligence.diff --git a/apps/www/_events/2024-08-30__launch-week-12-meetup-tenerife-spain.mdx b/apps/www/_events/2024-08-30__launch-week-12-meetup-tenerife-spain.mdxindex 374d575385c..14468fb326f 100644--- a/apps/www/_events/2024-08-30__launch-week-12-meetup-tenerife-spain.mdx+++ b/apps/www/_events/2024-08-30__launch-week-12-meetup-tenerife-spain.mdx@@ -1,13 +1,24 @@---title: 'Supabase Launch Week 12 Meetup: Tenerife, España'subtitle: 'Join the community at Tándem & Coworking - La Orotava, Canarias'-type: 'meetup'+type: meetuponDemand: falsedisable_page_build: true-link: { href: https://lu.ma/5219ibrl, target: '_blank' }+link:+ href: 'https://lu.ma/5219ibrl'+ target: _blankdate: '2024-08-30T10:00:00.000+01:00'-timezone: 'Atlantic/Canary'-duration: '2 hours'+timezone: Atlantic/Canary+duration: 2 hourscategories:- meetup+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+ - name: Iván Trujillo+ avatar_url: null+description: >-+ An in-person gathering in La Orotava, Canarias featuring networking+ opportunities, a presentation on 'Serving Open Science' by Steve Purves from+ Curvenote, and a discussion panel on 'Technologies in a Startup.---diff --git a/apps/www/_events/2024-09-05__hack-night-v0-19.mdx b/apps/www/_events/2024-09-05__hack-night-v0-19.mdxindex d34517c7508..7cd8e4be0ea 100644--- a/apps/www/_events/2024-09-05__hack-night-v0-19.mdx+++ b/apps/www/_events/2024-09-05__hack-night-v0-19.mdx@@ -1,13 +1,21 @@---title: 'hack night v0.19 - Miami Beach, Florida'-subtitle: 'where miami builds cool shit.'-type: 'talk'+subtitle: where miami builds cool shit.+type: talkonDemand: falsedisable_page_build: true-link: { href: https://lu.ma/x62id5w8, target: '_blank' }+link:+ href: 'https://lu.ma/x62id5w8'+ target: _blankdate: '2024-09-05T18:00:00.000-04:00'-timezone: 'America/New_York'-duration: '5 hours'+timezone: America/New_York+duration: 5 hourscategories:- talk+hosts:+ - name: thor_schaeff+ avatar_url: null+description: >-+ Miami's gathering for builders and developers to collaborate on projects and+ learn new technologies.---diff --git a/apps/www/_events/2024-09-05__launch-week-12-meetup-bucharest-romania.mdx b/apps/www/_events/2024-09-05__launch-week-12-meetup-bucharest-romania.mdxindex 3ceadd0eb2f..d4cb434562e 100644--- a/apps/www/_events/2024-09-05__launch-week-12-meetup-bucharest-romania.mdx+++ b/apps/www/_events/2024-09-05__launch-week-12-meetup-bucharest-romania.mdx@@ -1,13 +1,23 @@---title: 'Supabase Launch Week 12 Meetup: Bucharest, Romania'-subtitle: 'Join the community in Romania'-type: 'meetup'+subtitle: Join the community in Romania+type: meetuponDemand: falsedisable_page_build: true-link: { href: https://lu.ma/x910h8kb, target: '_blank' }+link:+ href: 'https://lu.ma/x910h8kb'+ target: _blankdate: '2024-09-05T18:00:00.000+02:00'-timezone: 'Europe/Belgrade'-duration: '2 hours'+timezone: Europe/Belgrade+duration: 2 hourscategories:- meetup+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ A community gathering celebrating Supabase's Launch Week 12 features. Three+ engaging 15-minute talks cover startups, databases, product design, and+ hardware, plus networking opportunities with local tech professionals and+ refreshments.---diff --git a/apps/www/_events/2024-09-07__launch-week-12-meetup-Ibadan-nigeria.mdx b/apps/www/_events/2024-09-07__launch-week-12-meetup-Ibadan-nigeria.mdxindex f1f5a4e34b1..df97a02d004 100644--- a/apps/www/_events/2024-09-07__launch-week-12-meetup-Ibadan-nigeria.mdx+++ b/apps/www/_events/2024-09-07__launch-week-12-meetup-Ibadan-nigeria.mdx@@ -1,13 +1,22 @@---title: 'Supabase Launch Week 12 Meetup: Ibadan, Nigeria'-subtitle: 'Join the community in Nigeria'-type: 'meetup'+subtitle: Join the community in Nigeria+type: meetuponDemand: falsedisable_page_build: true-link: { href: https://lu.ma/pm694jkd, target: '_blank' }+link:+ href: 'https://lu.ma/pm694jkd'+ target: _blankdate: '2024-09-07T09:00:00.000+01:00'-timezone: 'Africa/Algiers'-duration: '3 hours'+timezone: Africa/Algiers+duration: 3 hourscategories:- meetup+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Celebrate Supabase Launch Week with the local Ibadan tech community. Enjoy+ networking opportunities, talks about Supabase's latest offerings, and of+ course, swag. Free to attend.---diff --git a/apps/www/_events/2024-09-12-launch-week-12-hackathon.mdx b/apps/www/_events/2024-09-12-launch-week-12-hackathon.mdxindex 047eb6cee6c..71a54b2a8a8 100644--- a/apps/www/_events/2024-09-12-launch-week-12-hackathon.mdx+++ b/apps/www/_events/2024-09-12-launch-week-12-hackathon.mdx@@ -1,22 +1,26 @@----title: 'Supabase Launch Week 12 Hackathon'-meta_title: 'Supabase Launch Week 12 Hackathon'-subtitle: 'Build an Open Source Project over 10 days. 5 prize categories.'-meta_description: 'Build an Open Source Project over 10 days. 5 prize categories.'-type: 'hackathon'+title: Supabase Launch Week 12 Hackathon+meta_title: Supabase Launch Week 12 Hackathon+subtitle: Build an Open Source Project over 10 days. 5 prize categories.+meta_description: Build an Open Source Project over 10 days. 5 prize categories.+type: hackathononDemand: falsedate: '2024-09-13T09:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '10 days'+timezone: America/Los_Angeles+duration: 10 dayscategories:- hackathonmain_cta:- {- url: 'https://hackathon.dev/lw12',- target: '_blank',- label: 'Submit project',- disabled_label: 'Submissions closed',- }+ url: 'https://hackathon.dev/lw12'+ target: _blank+ label: Submit project+ disabled_label: Submissions closed+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Build an Open Source project over 10 days using Supabase and compete in 5+ prize categories.---The hackathon starts on Friday, September 13th at 09:00 am PT and ends on Sunday, September 22nd at 11:59 pm PT. You could win an extremely limited edition Supabase swag and add your name to the Supabase Hackathon Hall of Fame.diff --git a/apps/www/_events/2024-10-23-scale-to-millions-goodtape-auth.mdx b/apps/www/_events/2024-10-23-scale-to-millions-goodtape-auth.mdxindex 6ec223743a7..d9fafeee42d 100644--- a/apps/www/_events/2024-10-23-scale-to-millions-goodtape-auth.mdx+++ b/apps/www/_events/2024-10-23-scale-to-millions-goodtape-auth.mdx@@ -1,29 +1,32 @@----title: 'Scale to Millions: Migrating to Supabase Auth for Affordable, Scalable Authentication / Good Tape'+title: >-+ Scale to Millions: Migrating to Supabase Auth for Affordable, Scalable+ Authentication / Good Tapemeta_title: 'Scale to Millions: Migrating to Supabase Auth / Good Tape'-subtitle: 'Learn how to reduce costs while maintaining top-tier security with Supabase'-meta_description: 'Learn how to reduce costs while maintaining top-tier security with Supabase'-type: 'webinar'+subtitle: Learn how to reduce costs while maintaining top-tier security with Supabase+meta_description: Learn how to reduce costs while maintaining top-tier security with Supabase+type: webinaronDemand: truedate: '2024-10-23T10:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '45 mins'+timezone: America/Los_Angeles+duration: 45 minscompany:- {- name: 'Good Tape',- website_url: 'https://goodtape.io/',- logo: '/images/customers/logos/light/good-tape.png',- logo_light: '/images/customers/logos/good-tape.png',- }+ name: Good Tape+ website_url: 'https://goodtape.io/'+ logo: /images/customers/logos/light/good-tape.png+ logo_light: /images/customers/logos/good-tape.pngcategories:- webinarmain_cta:- {- url: 'https://zoom.us/webinar/register/WN_26XTfO35SAC81jjS1ulWJw?amp_device_id=1bd3c92f-c97a-45ad-8aab-a508f950b536',- target: '_blank',- label: 'Watch now',- }+ url: >-+ https://zoom.us/webinar/register/WN_26XTfO35SAC81jjS1ulWJw?amp_device_id=1bd3c92f-c97a-45ad-8aab-a508f950b536+ target: _blank+ label: Watch nowspeakers: 'stojan,kevinbrolly,craig_cannon,jstoone'+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: Learn how to reduce authentication costs while scaling with confidence.---## Cutting Costs and Scaling with Confidencediff --git a/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx b/apps/www/_events/2024-10-24__supabase-at-next-conf.mdxindex c99da201ec3..17b43a02bbb 100644--- a/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx+++ b/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx@@ -1,13 +1,23 @@----title: 'Supabase at Next.js Conf'-subtitle: 'where miami builds cool shit.'-type: 'talk'+title: Supabase at Next.js Conf+subtitle: where miami builds cool shit.+type: talkonDemand: falsedisable_page_build: true-link: { href: https://nextjs.org/conf, target: '_blank' }+link:+ href: 'https://nextjs.org/conf'+ target: _blankdate: '2024-10-24T10:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '5 hours'+timezone: America/Los_Angeles+duration: 5 hourscategories:- talk+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Supabase joins developers and AI innovators at Next.js Conf showcasing the+ latest updates in Next.js 16 and modern web development. The event features+ sessions on AI integration, caching strategies, and full-stack architecture+ with industry leaders.---diff --git a/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx b/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdxindex bf5781898c7..8738017c212 100644--- a/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx+++ b/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx@@ -1,27 +1,34 @@----title: 'Supabase AI Hackathon at YC'-meta_title: 'Supabase AI Hackathon at YC'-subtitle: 'Join us at Y Combinator for two days of hacking with Supabase.'-meta_description: 'Join us at Y Combinator for two days of hacking with Supabase.'-type: 'hackathon'-og_image: '/images/events/hackathons/supabase-ai-hackathon-at-y-combinator/yc-hackathon-og.png'+title: Supabase AI Hackathon at YC+meta_title: Supabase AI Hackathon at YC+subtitle: Join us at Y Combinator for two days of hacking with Supabase.+meta_description: Join us at Y Combinator for two days of hacking with Supabase.+type: hackathon+og_image: >-+ /images/events/hackathons/supabase-ai-hackathon-at-y-combinator/yc-hackathon-og.pngonDemand: falsemain_cta:- {- url: '',- target: '_blank',- label: 'Applications closed',- disabled_label: 'Applications closed',- disabled: true,- }+ url: ''+ target: _blank+ label: Applications closed+ disabled_label: Applications closed+ disabled: truedate: '2024-11-22T18:00:00.000-08:00'end_date: '2024-11-23T18:00:00.000-08:00'-timezone: 'America/Los_Angeles'-duration: '2 days'+timezone: America/Los_Angeles+duration: 2 dayscategories:- hackathonspeakers: 'ant_wilson,paul_copplestone'-speakers_label: 'Judges'+speakers_label: Judges+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ A two-day AI-focused hackathon at Y Combinator in San Francisco supporting the+ next wave of 1M+ user AI applications built on Supabase. YC partners and+ Supabase founders judge projects, with Anthropic providing credits to every+ team.---On November 22 and 23 we're hosting an AI-focused hackathon at [Y Combinator](https://www.ycombinator.com) in San Francisco.diff --git a/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx b/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdxindex 58b326af969..1c8a02dbab7 100644--- a/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx+++ b/apps/www/_events/2024-12-05-launch-week-13-hackathon.mdx@@ -1,17 +1,26 @@----title: 'Supabase Launch Week 13 Hackathon'-meta_title: 'Supabase Launch Week 13 Hackathon'-subtitle: 'Build an Open Source Project over 10 days. 5 prize categories.'-meta_description: 'Build an Open Source Project over 10 days. 5 prize categories.'-type: 'hackathon'+title: Supabase Launch Week 13 Hackathon+meta_title: Supabase Launch Week 13 Hackathon+subtitle: Build an Open Source Project over 10 days. 5 prize categories.+meta_description: Build an Open Source Project over 10 days. 5 prize categories.+type: hackathononDemand: falsedate: '2024-12-06T09:00:00.000-07:00'end_date: '2024-12-16T00:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '10 days'+timezone: America/Los_Angeles+duration: 10 dayscategories:- hackathon-main_cta: { url: 'https://hackathon.dev/lw13', target: '_blank', label: 'Submit project' }+main_cta:+ url: 'https://hackathon.dev/lw13'+ target: _blank+ label: Submit project+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Build an Open Source project over 10 days using Supabase and compete in 5+ prize categories.---The hackathon starts on Friday, December 6th at 09:00 am PT and ends on Sunday, December 15th at 11:59 pm PT. You could win an extremely limited edition Supabase swag and add your name to the Supabase Hackathon Hall of Fame.diff --git a/apps/www/_events/2025-09-10-migrating-from-firebase-mobbin.mdx b/apps/www/_events/2025-09-10-migrating-from-firebase-mobbin.mdxindex 5859478796c..51c55d4878d 100644--- a/apps/www/_events/2025-09-10-migrating-from-firebase-mobbin.mdx+++ b/apps/www/_events/2025-09-10-migrating-from-firebase-mobbin.mdx@@ -1,28 +1,33 @@---title: 'Firebase to Postgres: Breaking through the NoSQL ceiling with Mobbin'meta_title: 'Firebase to Postgres: Breaking through the NoSQL ceiling with Mobbin'-subtitle: 'How Mobbin scaled beyond Firebase with Supabase and Postgres'-meta_description: 'Learn how to overcome Firebase limitations and migrate to Postgres with Supabase for better performance, scalability, and cost control.'-type: 'webinar'+subtitle: How Mobbin scaled beyond Firebase with Supabase and Postgres+meta_description: >-+ Learn how to overcome Firebase limitations and migrate to Postgres with+ Supabase for better performance, scalability, and cost control.+type: webinaronDemand: truedate: '2025-09-10T08:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: '45 mins'+timezone: America/Los_Angeles+duration: 45 minscompany:- {- name: 'Mobbin',- website_url: 'https://mobbin.com/',- logo: '/images/customers/logos/light/mobbin.png',- logo_light: '/images/customers/logos/mobbin.png',- }+ name: Mobbin+ website_url: 'https://mobbin.com/'+ logo: /images/customers/logos/light/mobbin.png+ logo_light: /images/customers/logos/mobbin.pngcategories:- webinar-main_cta: {- url: 'https://zoom.us/webinar/register/WN_cMSVDLRSRKS5cH8EmmUUQg', # Replace with actual registration link- target: '_blank',- label: 'Register now',- }+main_cta:+ url: 'https://zoom.us/webinar/register/WN_cMSVDLRSRKS5cH8EmmUUQg'+ target: _blank+ label: Register nowspeakers: 'dventimi,jian_jie'+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'+description: >-+ Supabase engineers and Mobbin CEO discuss technical challenges of scaling+ applications on Firebase.---## Firebase to Postgres: Breaking through the NoSQL ceilingdiff --git a/apps/www/_events/2025-10-03__supabase-select.mdx b/apps/www/_events/2025-10-03__supabase-select.mdxindex e1017b07a1c..b4fb4c93521 100644--- a/apps/www/_events/2025-10-03__supabase-select.mdx+++ b/apps/www/_events/2025-10-03__supabase-select.mdx@@ -1,13 +1,22 @@----title: 'Supabase Select'-subtitle: 'Hosted at Y Combinator'-type: 'conference'+title: Supabase Select+subtitle: Hosted at Y Combinator+description: >-+ Supabase Select is a conference featuring keynotes from Supabase co-founders+ Paul Copplestone and Ant Wilson, plus special guests discussing 'building with+ data.+type: conferenceonDemand: falsedisable_page_build: true-link: { href: https://select.supabase.com/, target: '_blank' }+link:+ href: 'https://select.supabase.com/'+ target: _blankdate: '2025-10-03T10:00:00.000-07:00'-timezone: 'America/Los_Angeles'-duration: 'All Day'+timezone: America/Los_Angeles+duration: All Daycategories:- conference+hosts:+ - name: 'paul_copplestone,ant_wilson'+ avatar_url: null---diff --git a/apps/www/_events/2025-11-06__supabase-nashville-meetup.mdx b/apps/www/_events/2025-11-06__supabase-nashville-meetup.mdxindex 2f943f9d679..878569672cf 100644--- a/apps/www/_events/2025-11-06__supabase-nashville-meetup.mdx+++ b/apps/www/_events/2025-11-06__supabase-nashville-meetup.mdx@@ -1,12 +1,23 @@----title: 'VS Code Dev Days Nashville feat Supabase'-type: 'meetup'+title: VS Code Dev Days Nashville feat Supabase+description: >-+ VS Code + Supabase + You - An afternoon of hands-on training bringing AI+ development to life. Learn practical workflows for building, testing, and+ shipping AI-powered apps using VS Code's agent mode and Supabase's backend+ services.+type: meetup+cover_url: 'https://guild.host/social/event/vs-code-dev-days-nashville-4ossc9/card.svg'onDemand: falsedisable_page_build: true-link: { href: https://guild.host/events/vs-code-dev-days-nashville-4ossc9, target: '_blank' }+link:+ href: 'https://guild.host/events/vs-code-dev-days-nashville-4ossc9'+ target: _blankdate: '2025-11-06T10:00:00.000-06:00'-timezone: 'America/Chicago'-duration: '7 hours'+timezone: America/Chicago+duration: 7 hourscategories:- meetup+hosts:+ - name: torc.dev+ avatar_url: 'https://ik.imagekit.io/guild/prod/a44e0aac-dee9-42e0-bf12-e552bb27081f.png'---diff --git a/apps/www/_events/2025-11-06__uleam-tech-fest-hackathon.mdx b/apps/www/_events/2025-11-06__uleam-tech-fest-hackathon.mdxindex f7da1fcb44a..2af67cecc22 100644--- a/apps/www/_events/2025-11-06__uleam-tech-fest-hackathon.mdx+++ b/apps/www/_events/2025-11-06__uleam-tech-fest-hackathon.mdx@@ -1,11 +1,28 @@----title: 'Hackathon - Uleam Tech Fest'-type: 'hackathon'+title: Hackathon - Uleam Tech Fest+description: >-+ Soluciones tecnológicas innovadoras para la comunidad universitaria usando IA+ y software libre (Innovative technological solutions for the university+ community using AI and open-source software).+type: hackathon+cover_url: >-+ https://images.lumacdn.com/cdn-cgi/image/format=auto,fit=cover,dpr=2,anim=false,background=white,quality=75,width=500,height=500/event-covers/1l/915c91a5-df48-43e4-bcf7-bb548a01130d.jpgonDemand: falsedisable_page_build: true-link: { href: https://luma.com/iz19mnqn, target: '_blank' }+link:+ href: 'https://luma.com/iz19mnqn'+ target: _blankdate: '2025-11-06T14:00:00.000-05:00'-timezone: 'America/Guayaquil'+timezone: America/Guayaquilcategories:- hackathon+hosts:+ - name: Israel Julio Gomez+ avatar_url: null+ - name: Luis Figueroa+ avatar_url: null+ - name: Carrera de Software ULEAM+ avatar_url: null+ - name: Club IA+ avatar_url: null---diff --git a/apps/www/_events/2025-11-13__aic-ha-11-13.mdx b/apps/www/_events/2025-11-13__aic-ha-11-13.mdxindex 8f6cf7c81b4..66183d2848b 100644--- a/apps/www/_events/2025-11-13__aic-ha-11-13.mdx+++ b/apps/www/_events/2025-11-13__aic-ha-11-13.mdx@@ -1,12 +1,23 @@----title: '🧜♀️ The AI Collective HR • Vibecoding 101: Launch your idea today'-type: 'workshop'+title: "\U0001F9DC♀️ The AI Collective HR • Vibecoding 101: Launch your idea today"+description: >-+ Are you ready? We're going to design, develop, launch, and understand your+ idea today.+location: 'Virginia Beach, VA'+type: workshop+cover_url: >-+ https://images.lumacdn.com/cdn-cgi/image/format=auto,fit=cover,dpr=2,background=white,quality=75,width=400,height=400/event-covers/yp/85011619-8d7e-43d2-8634-862e0e53c2ee.pngonDemand: falsedisable_page_build: true-link: { href: https://luma.com/aic-ha-11-13, target: '_blank' }+link:+ href: 'https://luma.com/aic-ha-11-13'+ target: _blankdate: '2025-11-13T18:00:00.000-04:00'-timezone: 'America/Detroit'-duration: '2 hours'+timezone: America/Detroit+duration: 2 hourscategories:- workshop+hosts:+ - name: The AI Collective+ avatar_url: null---diff --git a/apps/www/_events/2025-11-20-supabase-agency-webinar.mdx b/apps/www/_events/2025-11-20-supabase-agency-webinar.mdxindex f100428e157..25e633aeb1f 100644--- a/apps/www/_events/2025-11-20-supabase-agency-webinar.mdx+++ b/apps/www/_events/2025-11-20-supabase-agency-webinar.mdx@@ -1,13 +1,17 @@---title: "Why Fast Isn't Enough: How AI Agencies Maintain Premium Pricing in 2025"meta_title: "Why Fast Isn't Enough: How AI Agencies Maintain Premium Pricing in 2025"-subtitle: 'Three agencies share how they differentiate beyond speed and maintain 40%+ margins'-meta_description: 'Learn how leading agencies use Postgres expertise and strategic services to command premium pricing while competitors race to the bottom on AI-built MVPs.'-type: 'webinar'+subtitle: >-+ Three agencies share how they differentiate beyond speed and maintain 40%++ margins+meta_description: >-+ Learn how leading agencies use Postgres expertise and strategic services to+ command premium pricing while competitors race to the bottom on AI-built MVPs.+type: webinaronDemand: falsedate: '2025-11-20T07:00:00.000-08:00'-timezone: 'America/Los_Angeles'-duration: '45 mins'+timezone: America/Los_Angeles+duration: 45 minscategories:- webinarmain_cta:diff --git a/apps/www/_events/2025-11-22__supabase-bogota-hackathon.mdx b/apps/www/_events/2025-11-22__supabase-bogota-hackathon.mdxindex fe68cd0269d..eb5cef182c2 100644--- a/apps/www/_events/2025-11-22__supabase-bogota-hackathon.mdx+++ b/apps/www/_events/2025-11-22__supabase-bogota-hackathon.mdx@@ -1,12 +1,24 @@----title: 'AI Voice & Message Hackathon by Universidad de Los Andes & Makers'-type: 'meetup'+title: AI Voice & Message Hackathon by Universidad de Los Andes & Makers+description: >-+ La primera y más grande hackathon de AI Voice & Message en LATAM hosted at+ Universidad de los Andes in Bogotá. This 12-hour non-stop event brings+ together 100 top builders in teams of 3-4 to develop voice and messaging AI+ agents.+type: meetup+cover_url: >-+ https://images.lumacdn.com/event-covers/06/182c87ff-1f50-406b-9ca3-1f3218101efe.pngonDemand: falsedisable_page_build: true-link: { href: https://luma.com/wq2jd7lj, target: '_blank' }+link:+ href: 'https://luma.com/wq2jd7lj'+ target: _blankdate: '2025-11-22T07:00:00.000-05:00'-timezone: 'America/Bogota'-duration: '12 hours'+timezone: America/Bogota+duration: 12 hourscategories:- meetup+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'---diff --git a/apps/www/_events/2025-12-02__supabase-athens-meetup.mdx b/apps/www/_events/2025-12-02__supabase-athens-meetup.mdxindex eb46efc7a56..81fad290a36 100644--- a/apps/www/_events/2025-12-02__supabase-athens-meetup.mdx+++ b/apps/www/_events/2025-12-02__supabase-athens-meetup.mdx@@ -1,12 +1,22 @@----title: 'Supabase Athens Meetup'-type: 'meetup'+title: Supabase Athens Meetup+description: >-+ Join us for a community-driven Supabase Athens Meetup focused on open-source,+ AI, and real-world developer workflows. The event explores how teams build+ with Supabase, integrate modern AI tooling, and contribute to OSS.+type: meetup+cover_url: 'https://secure.meetupstatic.com/photos/event/c/1/f/2/highres_531109650.jpeg'onDemand: falsedisable_page_build: true-link: { href: https://www.meetup.com/supabase-athens-community/events/311840751/, target: '_blank' }+link:+ href: 'https://www.meetup.com/supabase-athens-community/events/311840751/'+ target: _blankdate: '2025-12-02T19:00:00.000+02:00'-timezone: 'Europe/Athens'-duration: '2 hours'+timezone: Europe/Athens+duration: 2 hourscategories:- meetup+hosts:+ - name: Supabase+ avatar_url: 'https://github.com/supabase.png'---diff --git a/apps/www/app/api-v2/luma-events/route.tsx b/apps/www/app/api-v2/luma-events/route.tsxindex ffd30e14daa..7dad9fd21a9 100644--- a/apps/www/app/api-v2/luma-events/route.tsx+++ b/apps/www/app/api-v2/luma-events/route.tsx@@ -1,5 +1,6 @@import * as Sentry from '@sentry/nextjs'import { NextRequest, NextResponse } from 'next/server'+import { DEFAULT_META_DESCRIPTION } from '~/lib/constants'export interface LumaGeoAddressJson {city: string@@ -23,8 +24,10 @@ export interface LumaPayloadEvent {end_at: stringtimezone: stringurl: string+ cover_url: stringvisibility: stringgeo_address_json: LumaGeoAddressJson+ hosts: LumaHost[]}export interface LumaEvent {id: string@@ -40,6 +43,15 @@ export interface LumaEvent {visibility: string}+export interface LumaHost {+ id: string+ name: string+ email: string+ first_name: string+ last_name: string+ avatar_url: string+}+interface LumaResponse {entries: { event: LumaPayloadEvent }[]has_more: boolean@@ -103,6 +115,9 @@ export async function GET(request: NextRequest) {country: event.geo_address_json?.country,url: event.url,timezone: event.timezone,+ cover_url: event.cover_url,+ description: event.description,+ hosts: event.hosts || [],})).sort((a, b) => new Date(a.start_at).getTime() - new Date(b.start_at).getTime())diff --git a/apps/www/app/events/context.tsx b/apps/www/app/events/context.tsxnew file mode 100644index 00000000000..5f847f6afa7--- /dev/null+++ b/apps/www/app/events/context.tsx@@ -0,0 +1,231 @@+'use client'++import { createContext, useContext, useState, useEffect, useMemo, ReactNode } from 'react'+import { SupabaseEvent, SUPABASE_HOST } from '~/lib/eventsTypes'+import { cover } from 'three/src/extras/TextureUtils.js'++interface EventsContextValue {+ // Events data+ allEvents: SupabaseEvent[]+ filteredEvents: SupabaseEvent[]+ staticEvents: SupabaseEvent[]+ lumaEvents: SupabaseEvent[]+ featuredEvent: SupabaseEvent | undefined++ // Loading states+ isLoading: boolean++ // Search & Filter+ searchQuery: string+ setSearchQuery: (query: string) => void+ selectedCategories: string[]+ toggleCategory: (category: string) => void++ // Categories+ categories: { [key: string]: number }+}++const EventsContext = createContext<EventsContextValue | undefined>(undefined)++interface EventsProviderProps {+ children: ReactNode+ staticEvents: SupabaseEvent[]+}++export function EventsProvider({ children, staticEvents }: EventsProviderProps) {+ const [lumaEvents, setLumaEvents] = useState<SupabaseEvent[]>([])+ const [isLoading, setIsLoading] = useState(true)+ const [searchQuery, setSearchQuery] = useState('')+ const [selectedCategories, setSelectedCategories] = useState<string[]>(['all'])++ useEffect(() => {+ const fetchLumaEvents = async () => {+ try {+ setIsLoading(true)++ const afterDate = new Date().toISOString()+ const url = new URL('/api-v2/luma-events', window.location.origin)+ url.searchParams.append('after', afterDate)++ const res = await fetch(url.toString())+ const data = await res.json()++ if (data.success) {+ const transformedEvents: SupabaseEvent[] = data.events.map((event: any) => {+ let categories = []+ const isMeetup = event.name.toLowerCase().includes('meetup')+ if (isMeetup) categories.push('meetup')++ return {+ slug: '',+ type: 'event',+ title: event?.name || '',+ date: event?.start_at || '',+ description: event?.description || '',+ thumb: '',+ cover_url: event?.cover_url || '',+ path: '',+ url: event?.url || '',+ tags: categories,+ categories,+ timezone: event?.timezone || 'America/Los_Angeles',+ location: new Intl.ListFormat('en', { style: 'narrow', type: 'unit' }).format(+ [event?.city, event?.country].filter(Boolean)+ ),+ hosts: isMeetup || event?.hosts?.length === 0 ? [SUPABASE_HOST] : event?.hosts || [],+ source: 'luma',+ disable_page_build: true,+ link: {+ href: event?.url || '#',+ target: '_blank',+ },+ }+ })+ setLumaEvents(transformedEvents)+ }+ } catch (error) {+ console.error('Error fetching Luma events:', error)+ } finally {+ setIsLoading(false)+ }+ }++ fetchLumaEvents()+ }, [])++ // Merge all events (static + luma)+ const allEvents = useMemo(() => {+ return [...staticEvents, ...lumaEvents]+ }, [staticEvents, lumaEvents])++ // Calculate categories with counts+ const categories = useMemo(() => {+ const categoryCounts: { [key: string]: number } = { all: 0 }++ allEvents.forEach((event) => {+ categoryCounts.all += 1++ event.categories?.forEach((category) => {+ categoryCounts[category] = (categoryCounts[category] || 0) + 1+ })+ })++ return categoryCounts+ }, [allEvents])++ // Toggle category selection+ const toggleCategory = (category: string) => {+ if (category === 'all') {+ setSelectedCategories(['all'])+ return+ }++ setSelectedCategories((prev) => {+ // Remove 'all' if selecting a specific category+ const withoutAll = prev.filter((c) => c !== 'all')++ // Toggle the category+ if (withoutAll.includes(category)) {+ const updated = withoutAll.filter((c) => c !== category)+ // If no categories selected, default to 'all'+ return updated.length === 0 ? ['all'] : updated+ } else {+ return [...withoutAll, category]+ }+ })+ }++ // Filter events by search query and category+ const filteredEvents = useMemo(() => {+ let filtered = allEvents++ // Filter by categories (multiple selection)+ if (!selectedCategories.includes('all')) {+ filtered = filtered.filter((event) =>+ event.categories?.some((cat) => selectedCategories.includes(cat))+ )+ }++ // Filter by search query+ if (searchQuery.trim()) {+ const query = searchQuery.toLowerCase()+ filtered = filtered.filter((event) => {+ const titleMatch = event.title?.toLowerCase().includes(query)+ const descriptionMatch = event.description?.toLowerCase().includes(query)+ const locationMatch = event.location?.toLowerCase().includes(query)+ const tagsMatch = event.tags?.some((tag) => tag.toLowerCase().includes(query))++ return titleMatch || descriptionMatch || locationMatch || tagsMatch+ })+ }++ // Sort by date (upcoming events first)+ return filtered.sort((a, b) => {+ const dateA = new Date(a.date).getTime()+ const dateB = new Date(b.date).getTime()+ return dateA - dateB+ })+ }, [allEvents, selectedCategories, searchQuery])++ // Featured event: nearest upcoming event, or if none, the most recent past event+ const featuredEvent = useMemo(() => {+ if (allEvents.length === 0) return undefined++ const now = new Date()++ // Separate upcoming and past events+ const upcomingEvents = allEvents.filter((event) => {+ const eventDate = new Date(event.end_date || event.date)+ return eventDate >= now+ })++ const pastEvents = allEvents.filter((event) => {+ const eventDate = new Date(event.end_date || event.date)+ return eventDate < now+ })++ // If there are upcoming events, return the nearest one+ if (upcomingEvents.length > 0) {+ return upcomingEvents.sort((a, b) => {+ const dateA = new Date(a.date).getTime()+ const dateB = new Date(b.date).getTime()+ return dateA - dateB+ })[0]+ }++ // If no upcoming events, return the most recent past event+ if (pastEvents.length > 0) {+ return pastEvents.sort((a, b) => {+ const dateA = new Date(a.date).getTime()+ const dateB = new Date(b.date).getTime()+ return dateB - dateA // Descending order for past events+ })[0]+ }++ return undefined+ }, [allEvents, isLoading])++ const value: EventsContextValue = {+ allEvents,+ filteredEvents,+ staticEvents,+ lumaEvents,+ isLoading,+ searchQuery,+ setSearchQuery,+ selectedCategories,+ toggleCategory,+ categories,+ featuredEvent,+ }++ return <EventsContext.Provider value={value}>{children}</EventsContext.Provider>+}++export function useEvents() {+ const context = useContext(EventsContext)+ if (context === undefined) {+ throw new Error('useEvents must be used within an EventsProvider')+ }+ return context+}diff --git a/apps/www/app/events/page.tsx b/apps/www/app/events/page.tsxnew file mode 100644index 00000000000..89cc21fe8d5--- /dev/null+++ b/apps/www/app/events/page.tsx@@ -0,0 +1,14 @@+import { cn } from 'ui'+import DefaultLayout from '~/components/Layouts/Default'+import SectionContainer from '~/components/Layouts/SectionContainer'+import { getStaticEvents } from '~/lib/events'+import { EventsProvider } from './context'+import { EventBanner } from '~/components/Events/new/EventBanner'+import { EventClientRenderer } from '~/components/Events/new/EventClientRenderer'++export default async function EventsPage() {+ // This needs to be server-side as we use FS api.+ const staticEvents = await getStaticEvents()++ return <EventClientRenderer staticEvents={staticEvents.upcomingEvents} />+}diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsxindex ba69828e151..3fd83166485 100644--- a/apps/www/app/layout.tsx+++ b/apps/www/app/layout.tsx@@ -44,7 +44,7 @@ export const viewport: Viewport = {export default function RootLayout({ children }: { children: React.ReactNode }) {return (- <html lang="en">+ <html lang="en" suppressHydrationWarning><body><Providers>{children}</Providers></body>diff --git a/apps/www/components/Events/new/EventBanner.tsx b/apps/www/components/Events/new/EventBanner.tsxnew file mode 100644index 00000000000..439e72306e7--- /dev/null+++ b/apps/www/components/Events/new/EventBanner.tsx@@ -0,0 +1,254 @@+'use client'++import { CalendarIcon, MapPinIcon, UsersIcon } from 'lucide-react'+import Image from 'next/image'+import Link from 'next/link'+import { cn, Button } from 'ui'+import { useEvents } from '~/app/events/context'+import { formatHosts } from '~/lib/eventsUtils'++export function EventBanner() {+ const { isLoading, allEvents, featuredEvent } = useEvents()++ if (isLoading) {+ return <EventBannerSkeleton />+ }++ if (!featuredEvent) return null++ return (+ <section className={cn('grid md:grid-cols-[minmax(320px,35%),1fr] gap-12')}>+ <CoverImage url={featuredEvent.cover_url} />++ <article className="flex flex-col gap-6 py-2">+ <div className="flex justify-between items-start">+ <div className="flex flex-col gap-1.5">+ <h2 className="text-2xl font-medium">{featuredEvent.title}</h2>+ <p+ className="text-lg font-medium text-foreground-light"+ title={`Hosted by ${formatHosts(featuredEvent.hosts).fullList}`}+ >+ {formatHosts(featuredEvent.hosts).displayText}+ </p>+ </div>++ {featuredEvent.link && (+ <Button className="hidden md:block mt-1" size="medium" asChild>+ <Link+ href={featuredEvent.link.href}+ target={featuredEvent.link.target}+ rel="noopener noreferrer"+ >+ Register+ </Link>+ </Button>+ )}+ </div>++ <div className="flex flex-wrap gap-y-4 gap-x-12 items-center">+ <DateWidget date={featuredEvent.date} endDate={featuredEvent.end_date} />+ <LocationWidget location={featuredEvent.location} />+ </div>++ <p className="whitespace-pre-line text-foreground-light mt-4">+ {featuredEvent.description}+ </p>++ {featuredEvent.link && (+ <Button className="block md:hidden mt-1" size="medium" asChild>+ <Link+ href={featuredEvent.link.href}+ target={featuredEvent.link.target}+ rel="noopener noreferrer"+ >+ Register+ </Link>+ </Button>+ )}+ </article>+ </section>+ )+}++const DateWidget = ({ date, endDate }: { date: string; endDate?: string }) => {+ const eventDate = new Date(date)++ const formattedDate = eventDate.toLocaleDateString('en-US', {+ weekday: 'long',+ month: 'long',+ day: 'numeric',+ })++ const currentYear = new Date().getFullYear()+ const eventYear = eventDate.getFullYear()+ const formattedDateWithYear =+ eventYear !== currentYear ? `${formattedDate}, ${eventYear}` : formattedDate++ // Extract start time from the date string+ const startTime = eventDate.toLocaleTimeString('en-US', {+ hour: 'numeric',+ minute: '2-digit',+ hour12: true,+ })++ // If there's an end date, format it and show time range+ let timeDisplay = startTime+ if (endDate) {+ const endEventDate = new Date(endDate)+ const endTime = endEventDate.toLocaleTimeString('en-US', {+ hour: 'numeric',+ minute: '2-digit',+ hour12: true,+ })+ timeDisplay = `${startTime} - ${endTime}`+ }++ return (+ <div className="flex items-center gap-4">+ <div className="bg-surface-100 p-1.5 border rounded-md">+ <CalendarIcon className="size-7" />+ </div>++ <div className="flex flex-col gap-0">+ <p>{formattedDateWithYear}</p>+ <p className="text-foreground-light text-sm">{timeDisplay}</p>+ </div>+ </div>+ )+}++const LocationWidget = ({ location }: { location?: string }) => {+ const hasLocation = location && location.length > 0+ const locationText = hasLocation ? location : 'Unknown'++ return (+ <div className="flex items-center gap-4">+ <div className="bg-surface-100 p-1.5 border rounded-md">+ <MapPinIcon className="size-7" />+ </div>++ <div className="flex flex-col gap-0">+ <p>Hosted at</p>+ <p className="text-foreground-light text-sm">{locationText}</p>+ </div>+ </div>+ )+}++const CoverImage = ({ url }: { url?: string }) => {+ if (!url)+ return (+ <div className="w-full bg-surface-100 aspect-square border rounded-lg grid place-items-center">+ <Logo />+ </div>+ )++ return (+ <div className="w-full bg-surface-100 aspect-square border rounded-lg overflow-hidden relative">+ <img src={url} alt="Event Cover" className="object-cover w-full" />+ </div>+ )+}++const Logo = () => (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="109"+ height="113"+ fill="none"+ viewBox="0 0 109 113"+ >+ <path+ fill="url(#a)"+ d="M63.708 110.284c-2.86 3.601-8.658 1.628-8.727-2.97l-1.007-67.251h45.22c8.19 0 12.758 9.46 7.665 15.874z"+ ></path>+ <path+ fill="url(#b)"+ fillOpacity="0.2"+ d="M63.708 110.284c-2.86 3.601-8.658 1.628-8.727-2.97l-1.007-67.251h45.22c8.19 0 12.758 9.46 7.665 15.874z"+ ></path>+ <path+ fill="#3ecf8e"+ d="M45.317 2.071c2.86-3.601 8.657-1.628 8.726 2.97l.442 67.251H9.83c-8.19 0-12.759-9.46-7.665-15.875z"+ ></path>+ <defs>+ <linearGradient+ id="a"+ x1="53.974"+ x2="94.163"+ y1="54.974"+ y2="71.829"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor="#249361"></stop>+ <stop offset="1" stopColor="#3ecf8e"></stop>+ </linearGradient>+ <linearGradient+ id="b"+ x1="36.156"+ x2="54.484"+ y1="30.578"+ y2="65.081"+ gradientUnits="userSpaceOnUse"+ >+ <stop></stop>+ <stop offset="1" stopOpacity="0"></stop>+ </linearGradient>+ </defs>+ </svg>+)++const EventBannerSkeleton = () => {+ return (+ <section className={cn('grid md:grid-cols-[minmax(320px,35%),1fr] gap-12')}>+ {/* Cover Image Skeleton */}+ <div className="w-full bg-surface-200 aspect-square border rounded-lg animate-pulse" />++ <article className="flex flex-col gap-6 py-2">+ <div className="flex justify-between items-start">+ <div className="flex flex-col gap-1.5 flex-1">+ {/* Title Skeleton */}+ <div className="h-8 bg-surface-200 rounded animate-pulse w-3/4" />+ {/* Host Skeleton */}+ <div className="h-6 bg-surface-200 rounded animate-pulse w-1/2 mt-1" />+ </div>++ {/* Button Skeleton */}+ <div className="hidden md:block mt-1 h-10 w-24 bg-surface-200 rounded animate-pulse" />+ </div>++ <div className="flex flex-wrap gap-y-4 gap-x-12 items-center">+ {/* Date Widget Skeleton */}+ <div className="flex items-center gap-4">+ <div className="bg-surface-200 p-1.5 border rounded-md">+ <div className="size-7 bg-surface-200 rounded animate-pulse" />+ </div>+ <div className="flex flex-col gap-2">+ <div className="h-5 w-40 bg-surface-200 rounded animate-pulse" />+ <div className="h-4 w-24 bg-surface-200 rounded animate-pulse" />+ </div>+ </div>++ {/* Location Widget Skeleton */}+ <div className="flex items-center gap-4">+ <div className="bg-surface-200 p-1.5 border rounded-md">+ <div className="size-7 bg-surface-200 rounded animate-pulse" />+ </div>+ <div className="flex flex-col gap-2">+ <div className="h-5 w-24 bg-surface-200 rounded animate-pulse" />+ <div className="h-4 w-32 bg-surface-200 rounded animate-pulse" />+ </div>+ </div>+ </div>++ {/* Description Skeleton */}+ <div className="mt-4 space-y-2">+ <div className="h-32 bg-surface-200 rounded animate-pulse w-full" />+ </div>++ {/* Mobile Button Skeleton */}+ <div className="block md:hidden mt-1 h-10 w-full bg-surface-200 rounded animate-pulse" />+ </article>+ </section>+ )+}diff --git a/apps/www/components/Events/new/EventClientRenderer.tsx b/apps/www/components/Events/new/EventClientRenderer.tsxnew file mode 100644index 00000000000..96399b77328--- /dev/null+++ b/apps/www/components/Events/new/EventClientRenderer.tsx@@ -0,0 +1,31 @@+import { cn } from 'ui'+import DefaultLayout from '~/components/Layouts/Default'+import SectionContainer from '~/components/Layouts/SectionContainer'+import { getStaticEvents } from '~/lib/events'+import { SupabaseEvent } from '~/lib/eventsTypes'+import { EventBanner } from '~/components/Events/new/EventBanner'+import { EventsProvider } from '~/app/events/context'+import { EventGallery } from './EventGallery'++export function EventClientRenderer({ staticEvents }: { staticEvents: SupabaseEvent[] }) {+ return (+ <EventsProvider staticEvents={staticEvents}>+ <DefaultLayout className="flex flex-col">+ <SectionContainer className="border-x border-b lg:!py-12">+ <h1 className="h1">+ <span className="sr-only">Supabase</span> Events+ </h1>+ <p className="text-foreground-light">Join us at the following upcoming events</p>+ </SectionContainer>++ <SectionContainer className="border-x flex-1 lg:!pt-12">+ <EventBanner />+ </SectionContainer>++ <SectionContainer className="border-x flex-1 !pt-0">+ <EventGallery />+ </SectionContainer>+ </DefaultLayout>+ </EventsProvider>+ )+}diff --git a/apps/www/components/Events/new/EventGallery.tsx b/apps/www/components/Events/new/EventGallery.tsxnew file mode 100644index 00000000000..90cb40ff64f--- /dev/null+++ b/apps/www/components/Events/new/EventGallery.tsx@@ -0,0 +1,16 @@+import { cn } from 'ui'+import { EventGalleryFilters } from './EventGalleryFilters'+import { EventList } from './EventList'+import { EventTimeline } from './EventTimeline'++export function EventGallery() {+ return (+ <section className={cn('grid md:grid-cols-[minmax(320px,35%),16px,1fr] gap-12')}>+ <div className="sticky top-16 md:top-24 py-4 bg-background self-start z-10">+ <EventGalleryFilters />+ </div>+ <EventTimeline />+ <EventList />+ </section>+ )+}diff --git a/apps/www/components/Events/new/EventGalleryFilters.tsx b/apps/www/components/Events/new/EventGalleryFilters.tsxnew file mode 100644index 00000000000..3921b1a1aa9--- /dev/null+++ b/apps/www/components/Events/new/EventGalleryFilters.tsx@@ -0,0 +1,52 @@+'use client'++import { Input } from '@ui/components/shadcn/ui/input'+import { SearchIcon } from 'lucide-react'+import { Badge } from 'ui'+import { useEvents } from '~/app/events/context'++const CATEGORIES_FILTERS = [+ { name: 'All', value: 'all' },+ { name: 'Meetup', value: 'meetup' },+ { name: 'Workshop', value: 'workshop' },+ { name: 'Hackathon', value: 'hackathon' },+ { name: 'Webinar', value: 'webinar' },+ { name: 'On demand', value: 'on-demand' },+]++export function EventGalleryFilters() {+ const { searchQuery, setSearchQuery, selectedCategories, toggleCategory, categories } =+ useEvents()++ return (+ <div className="flex flex-col gap-y-4">+ <div className="relative">+ <SearchIcon className="absolute left-3 top-[9px] size-4 text-foreground-muted" />+ <Input+ placeholder="Search events"+ className="pl-10"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ />+ </div>++ <div className="flex gap-2 flex-wrap">+ {CATEGORIES_FILTERS.map((category) => {+ const count = categories[category.value] || 0+ const isActive = selectedCategories.includes(category.value)++ return (+ <Badge+ key={category.value}+ variant={isActive ? 'brand' : 'outline'}+ className="cursor-pointer"+ onClick={() => toggleCategory(category.value)}+ >+ {category.name} ({count})+ </Badge>+ )+ })}+ </div>+ </div>+ )+}diff --git a/apps/www/components/Events/new/EventList.tsx b/apps/www/components/Events/new/EventList.tsxnew file mode 100644index 00000000000..83fe3f71d13--- /dev/null+++ b/apps/www/components/Events/new/EventList.tsx@@ -0,0 +1,149 @@+'use client'++import { Rows3Icon } from 'lucide-react'+import Link from 'next/link'+import { Badge, cn } from 'ui'+import { useEvents } from '~/app/events/context'+import { formatHosts } from '~/lib/eventsUtils'++const CATEGORIES_FILTERS = [+ { name: 'All', value: 'all' },+ { name: 'Meetup', value: 'meetup' },+ { name: 'Workshop', value: 'workshop' },+ { name: 'Hackathon', value: 'hackathon' },+ { name: 'Webinar', value: 'webinar' },+ { name: 'On demand', value: 'on-demand' },+]++export function EventList() {+ const { isLoading, filteredEvents } = useEvents()++ const getCategoryLabel = (value: string) => {+ const category = CATEGORIES_FILTERS.find((cat) => cat.value === value)+ return category?.name || value+ }++ if (isLoading) {+ return <EventListSkeleton />+ }++ // Group events by date+ const eventsByDate = filteredEvents.reduce(+ (acc, event) => {+ const eventDate = new Date(event.date).toLocaleDateString('en-US', {+ weekday: 'long',+ year: 'numeric',+ month: 'long',+ day: 'numeric',+ })++ if (!acc[eventDate]) {+ acc[eventDate] = []+ }+ acc[eventDate].push(event)+ return acc+ },+ {} as Record<string, typeof filteredEvents>+ )++ return (+ <div className="flex flex-col gap-y-8 min-h-72">+ {Object.entries(eventsByDate).map(([date, events], index) => (+ <div key={`group-${date}`} className="flex flex-col gap-y-2 relative">+ <div+ className={cn(+ 'absolute top-2 -left-[calc(48px+11px)] rounded-full size-1.5',+ index === 0 ? 'bg-brand size-2 -left-[calc(48px+12px)]' : 'bg-foreground-muted'+ )}+ />++ <h3 className="text-foreground-light font-normal">{date}</h3>++ <div className="flex flex-col gap-y-4">+ {events.map((event, idx) => (+ <div+ key={`${idx}-${event.url}`}+ className="bg-surface-100 border rounded-md p-3 flex justify-between items-start relative"+ >+ <Link+ className="inset-0 absolute"+ href={event.url}+ target={event.url.startsWith('http') ? '_blank' : '_self'}+ title="Go to event page"+ aria-hidden+ />++ <div className="flex flex-col gap-2">+ <h3>{event.title}</h3>++ <div className="flex gap-2 items-center text-sm text-foreground-light">+ <div className="size-5 rounded-full border bg-gradient-to-br from-background-surface-100 to-background-surface-200 relative">+ {event.hosts[0]?.avatar_url && (+ <img+ src={event.hosts[0].avatar_url}+ alt={event.hosts[0].name || 'Host image'}+ className="absolute inset-0 w-full h-full object-cover rounded-full"+ />+ )}+ </div>+ Hosted by {formatHosts(event.hosts).displayText}+ </div>+ </div>++ {event.categories.map((tag, idx) => (+ <Badge key={`tag-${idx}`}>{getCategoryLabel(tag)}</Badge>+ ))}+ </div>+ ))}+ </div>+ </div>+ ))}++ {/* emtpy state */}+ {Object.keys(eventsByDate).length === 0 && (+ <div className="self-center text-muted my-auto flex flex-col items-center gap-y-4">+ <Rows3Icon className="size-8" />+ <p className="">Oops! No events found.</p>+ </div>+ )}+ </div>+ )+}++const EventListSkeleton = () => {+ return (+ <div className="flex flex-col gap-y-8">+ {[1, 2, 3].map((groupIdx) => (+ <div key={`skeleton-group-${groupIdx}`} className="flex flex-col gap-y-2 relative">+ <div className="absolute top-2 -left-[calc(48px+11px)] rounded-full size-1.5 bg-foreground-muted" />++ {/* Date Skeleton */}+ <div className="h-6 bg-surface-200 rounded animate-pulse w-64" />++ <div className="flex flex-col gap-y-4">+ {[1, 2, 3, 4].map((eventIdx) => (+ <div+ key={`skeleton-event-${groupIdx}-${eventIdx}`}+ className="bg-surface-100 border rounded-md p-3 flex justify-between items-start"+ >+ <div className="flex flex-col gap-2 flex-1">+ {/* Title Skeleton */}+ <div className="h-6 bg-surface-200 rounded animate-pulse w-3/4" />++ {/* Host Info Skeleton */}+ <div className="flex gap-2 items-center">+ <div className="size-5 rounded-full bg-surface-200 animate-pulse" />+ <div className="h-4 bg-surface-200 rounded animate-pulse w-32" />+ </div>+ </div>++ {/* Badge Skeleton */}+ <div className="h-6 w-16 bg-surface-200 rounded-full animate-pulse" />+ </div>+ ))}+ </div>+ </div>+ ))}+ </div>+ )+}diff --git a/apps/www/components/Events/new/EventTimeline.tsx b/apps/www/components/Events/new/EventTimeline.tsxnew file mode 100644index 00000000000..6bd93e3eb03--- /dev/null+++ b/apps/www/components/Events/new/EventTimeline.tsx@@ -0,0 +1,13 @@+export function EventTimeline() {+ return (+ <div className="relative hidden md:flex h-full w-full py-2 flex-col items-center gap-y-8">+ <div+ className="absolute h-full w-px border-[0.5px] border-dashed left-1/2 -translate-x-1/2"+ style={{+ maskImage:+ 'linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 97%, rgba(0, 0, 0, 0) 100%)',+ }}+ />+ </div>+ )+}diff --git a/apps/www/lib/events.ts b/apps/www/lib/events.tsnew file mode 100644index 00000000000..9a05822af50--- /dev/null+++ b/apps/www/lib/events.ts@@ -0,0 +1,297 @@+/*+ * @file events.ts+ * @description Unified api to fetch events from Luma and Filesystem.+ */+import supabase from 'lib/supabase'+import { getSortedPosts } from 'lib/posts'+import authors from 'lib/authors.json'+import { EventHost, SUPABASE_HOST, SupabaseEvent } from './eventsTypes'++/**+ * Parse hosts from either a comma-separated string of author IDs or an array of host objects+ * Maps author IDs to EventHost objects using the authors.json file+ */+function parseHostsFromAuthors(+ hostsData?: string | Array<{ name: string; avatar_url?: string | null }>+): EventHost[] {+ if (!hostsData) return [SUPABASE_HOST]++ // Handle array format (new format from MDX files)+ if (Array.isArray(hostsData)) {+ const hosts = hostsData+ .map((host) => {+ // Try to find author by name for additional data+ const author = authors.find((a: any) => a.author === host.name || a.author_id === host.name)++ if (author) {+ return {+ id: (author as any).author_id || host.name,+ email: (author as any).author_url || '',+ name: (author as any).author || host.name,+ first_name: (author as any).author?.split(' ')[0] || host.name?.split(' ')[0] || null,+ last_name:+ (author as any).author?.split(' ').slice(1).join(' ') ||+ host.name?.split(' ').slice(1).join(' ') ||+ null,+ avatar_url: host.avatar_url || (author as any).author_image_url || '',+ }+ }++ // Return host as-is if no author match+ return {+ id: host.name,+ email: '',+ name: host.name,+ first_name: host.name?.split(' ')[0] || null,+ last_name: host.name?.split(' ').slice(1).join(' ') || null,+ avatar_url: host.avatar_url || '',+ }+ })+ .filter((host): host is EventHost => host !== null && host.name !== null)++ return hosts.length > 0 ? hosts : [SUPABASE_HOST]+ }++ // Handle string format (legacy format)+ const hostIds = hostsData.split(',').map((id) => id.trim())+ const hosts = hostIds+ .map((hostId) => {+ const author = authors.find((a: any) => a.author_id === hostId)+ if (!author) return null++ return {+ id: (author as any).author_id || hostId,+ email: (author as any).author_url || '',+ name: (author as any).author || null,+ first_name: (author as any).author?.split(' ')[0] || null,+ last_name: (author as any).author?.split(' ').slice(1).join(' ') || null,+ avatar_url: (author as any).author_image_url || '',+ }+ })+ .filter((host): host is EventHost => host !== null)++ return hosts.length > 0 ? hosts : [SUPABASE_HOST]+}++interface LumaEvent {+ id: string+ name: string+ start_at: string+ end_at: string+ timezone: string+ location: string+ url: string+ hosts: Array<{+ id: string+ email: string+ name: string | null+ first_name: string | null+ last_name: string | null+ avatar_url: string+ }>+}++interface MeetupRecord {+ id: string+ city: string+ country?: string+ link: string+ start_at: string+ timezone: string+ launch_week: string+}++interface EventRecord {+ slug: string+ type: string+ title: string+ date: string+ end_date?: string+ description: string+ thumb: string+ cover_url: string+ path: string+ url: string+ tags?: string[]+ categories?: string[]+ timezone?: string+ location?: string+ onDemand?: boolean+ disable_page_build?: boolean+ link?: {+ href: string+ target?: '_blank' | '_self'+ label?: string+ }+}++/**+ * Get the nearest upcoming event from an array of events+ * Returns the event with the closest date to now that is still in the future+ */+export const getFeaturedEvent = (events: SupabaseEvent[]): SupabaseEvent | null => {+ if (!events || events.length === 0) return null++ const now = new Date()++ // Filter for upcoming events only+ const upcomingEvents = events.filter((event) => {+ const eventDate = new Date(event.end_date || event.date)+ return eventDate >= now+ })++ if (upcomingEvents.length === 0) return null++ // Sort by date ascending and return the nearest one+ const sortedEvents = upcomingEvents.sort((a, b) => {+ const dateA = new Date(a.date)+ const dateB = new Date(b.date)+ return dateA.getTime() - dateB.getTime()+ })++ return sortedEvents[0]+}++export const getLumaEvents = async (): Promise<SupabaseEvent[]> => {+ try {+ const afterDate = new Date().toISOString()+ const url = new URL('/api-v2/luma-events', window.location.origin)+ url.searchParams.append('after', afterDate)++ const res = await fetch(url.toString())+ const data = await res.json()++ if (data.success) {+ const transformedEvents: SupabaseEvent[] = data.events.map((event: LumaEvent) => {+ let categories = []+ const isMeetup = event.name.toLowerCase().includes('meetup')+ if (isMeetup) categories.push('meetup')++ return {+ slug: '',+ type: 'event',+ title: event?.name || '',+ date: event?.start_at || '',+ description: '',+ thumb: '',+ cover_url: '',+ path: '',+ url: event?.url || '',+ tags: categories,+ categories,+ timezone: event?.timezone || 'America/Los_Angeles',+ location: event?.location || '',+ hosts: isMeetup ? [SUPABASE_HOST] : event?.hosts || [],+ source: 'luma',+ disable_page_build: true,+ link: {+ href: event?.url || '#',+ target: '_blank',+ },+ }+ })+ return transformedEvents+ }++ return []+ } catch (error) {+ console.error('Error fetching Luma events:', error)+ return []+ }+}++export const getStaticEvents = async (): Promise<{+ upcomingEvents: SupabaseEvent[]+ onDemandEvents: SupabaseEvent[]+ categories: { [key: string]: number }+}> => {+ const { data: meetups, error } = await supabase+ .from('meetups')+ .select('id, city, country, link, start_at, timezone, launch_week')+ .eq('is_published', true)++ if (error) console.log('meetups error: ', error)++ const meetupEvents: SupabaseEvent[] =+ meetups?.map((meetup: any) => ({+ slug: '',+ type: 'event',+ title: `Launch Week ${meetup.launch_week.slice(2)} Meetup: ${meetup.city}, ${meetup.country}`,+ date: meetup.start_at,+ description: '',+ thumb: '',+ cover_url: '',+ path: '',+ url: meetup.link || '',+ tags: ['meetup', 'launch-week'],+ categories: ['meetup'],+ timezone: meetup.timezone || 'America/Los_Angeles',+ location: `${meetup.city}, ${meetup.country}`,+ hosts: [SUPABASE_HOST],+ source: 'supabase',+ disable_page_build: true,+ link: {+ href: meetup.link || '#',+ target: '_blank',+ },+ })) ?? []++ const staticEvents = getSortedPosts({+ directory: '_events',+ runner: '** EVENTS PAGE **',+ })++ const allEvents: SupabaseEvent[] = [+ ...staticEvents.map(+ (post): SupabaseEvent => ({+ slug: post.slug || '',+ type: (post as any).type || 'event',+ title: post.title || '',+ date: post.date || '',+ description: post.description || '',+ thumb: post.thumb || '',+ cover_url: (post as any).cover_url || '',+ path: post.path || '',+ url: post.url || '',+ tags: post.tags || [],+ categories: post.categories || [],+ timezone: (post as any).timezone || 'America/Los_Angeles',+ location: (post as any).location || '',+ hosts: parseHostsFromAuthors((post as any).hosts),+ source: 'file',+ end_date: (post as any).end_date,+ onDemand: (post as any).onDemand,+ disable_page_build: (post as any).disable_page_build,+ link: (post as any).link,+ })+ ),+ ...meetupEvents,+ ]++ const upcomingEvents = allEvents.filter((event: SupabaseEvent) =>+ event.end_date ? new Date(event.end_date) >= new Date() : new Date(event.date) >= new Date()+ )++ const onDemandEvents = allEvents.filter(+ (event: SupabaseEvent) => new Date(event.date) < new Date() && event.onDemand === true+ )++ const categories = upcomingEvents.reduce(+ (acc: { [key: string]: number }, event: SupabaseEvent) => {+ acc.all = (acc.all || 0) + 1++ event.categories?.forEach((category) => {+ acc[category] = (acc[category] || 0) + 1+ })++ return acc+ },+ { all: 0 }+ )++ return {+ upcomingEvents,+ onDemandEvents,+ categories,+ }+}diff --git a/apps/www/lib/eventsTypes.ts b/apps/www/lib/eventsTypes.tsnew file mode 100644index 00000000000..f8cf9f5271e--- /dev/null+++ b/apps/www/lib/eventsTypes.ts@@ -0,0 +1,57 @@+/**+ * @file eventsTypes.ts+ * @description Shared types and constants for events that can be used in both client and server components+ */++/**+ * Host information for events+ */+export interface EventHost {+ id: string+ email: string+ name: string | null+ first_name: string | null+ last_name: string | null+ avatar_url: string+}++/**+ * Default host for Supabase-hosted events+ */+export const SUPABASE_HOST: EventHost = {+ id: 'supabase',+ email: '[email protected]',+ name: 'Supabase',+ first_name: 'Supabase',+ last_name: null,+ avatar_url: 'https://github.com/supabase.png',+}++/**+ * Unified event interface for all events in the system+ */+export interface SupabaseEvent {+ slug: string+ type: string+ title: string+ date: string+ description: string+ thumb: string+ cover_url: string+ path: string+ url: string+ tags: string[]+ categories: string[]+ timezone: string+ location: string+ hosts: EventHost[]+ source: 'luma' | 'supabase' | 'file'+ end_date?: string+ onDemand?: boolean+ disable_page_build?: boolean+ link?: {+ href: string+ target?: '_blank' | '_self'+ label?: string+ }+}diff --git a/apps/www/lib/eventsUtils.ts b/apps/www/lib/eventsUtils.tsnew file mode 100644index 00000000000..d79e8259387--- /dev/null+++ b/apps/www/lib/eventsUtils.ts@@ -0,0 +1,55 @@+import { EventHost } from './eventsTypes'++/**+ * Formats hosts array for display+ * If there are more than 2 hosts, shows "FirstHost and X more"+ *+ * @param hosts - Array of event hosts+ * @returns Object with displayText and fullList (for title attribute)+ *+ * @example+ * formatHosts([host1]) => { displayText: "Supabase", fullList: "Supabase" }+ * formatHosts([host1, host2]) => { displayText: "Supabase and GitHub", fullList: "Supabase, GitHub" }+ * formatHosts([host1, host2, host3]) => { displayText: "Supabase and 2 more", fullList: "Supabase, GitHub, Vercel" }+ */+export function formatHosts(hosts: EventHost[]): {+ displayText: string+ fullList: string+} {+ if (!hosts || hosts.length === 0) {+ return {+ displayText: '',+ fullList: '',+ }+ }++ // Get host names, preferring 'name' over constructed name from first/last+ const hostNames = hosts.map((host) => {+ if (host.name) return host.name+ if (host.first_name && host.last_name) {+ return `${host.first_name} ${host.last_name}`+ }+ if (host.first_name) return host.first_name+ return 'Unknown Host'+ })++ // Full list for title attribute (comma-separated)+ const fullList = hostNames.join(', ')++ // Display text logic+ let displayText: string++ if (hostNames.length === 1) {+ displayText = hostNames[0]+ } else if (hostNames.length === 2) {+ displayText = `${hostNames[0]} and ${hostNames[1]}`+ } else {+ const remaining = hostNames.length - 1+ displayText = `${hostNames[0]} and ${remaining} more`+ }++ return {+ displayText,+ fullList,+ }+}diff --git a/apps/www/pages/events/index.tsx b/apps/www/pages/events/index.tsxdeleted file mode 100644index fb4036d6202..00000000000--- a/apps/www/pages/events/index.tsx+++ /dev/null@@ -1,273 +0,0 @@-import { useState, useEffect, useMemo } from 'react'-import { useRouter } from 'next/router'-import { NextSeo } from 'next-seo'--import { getSortedPosts } from 'lib/posts'-import supabase from 'lib/supabase'--import { cn } from 'ui'-import DefaultLayout from 'components/Layouts/Default'-import EventListItem from 'components/Events/EventListItem'-import EventsFilters from 'components/Events/EventsFilters'-import SectionContainer from 'components/Layouts/SectionContainer'--import type BlogPost from 'types/post'-import type { LumaEvent } from 'app/api-v2/luma-events/route'--interface Props {- events: BlogPost[]- onDemandEvents: BlogPost[]- categories: { [key: string]: number }-}--export default function Events({- events: staticEvents,- onDemandEvents,- categories: staticCategories,-}: Props) {- const [lumaEvents, setLumaEvents] = useState<BlogPost[]>([])- const [isLoadingLuma, setIsLoadingLuma] = useState(true)- const [filteredEvents, setFilteredEvents] = useState<BlogPost[]>([])- const router = useRouter()-- // Fetch Luma events on client-side to avoid serverless maximum size limit error: https://vercel.com/guides/troubleshooting-function-250mb-limit- useEffect(() => {- const fetchLumaEvents = async () => {- try {- const afterDate = new Date().toISOString()- const url = new URL('/api-v2/luma-events', window.location.origin)- url.searchParams.append('after', afterDate)-- const res = await fetch(url.toString())- const data = await res.json()-- if (data.success) {- const transformedEvents = data.events.map((event: LumaEvent) => {- let categories = []- if (event.name.toLowerCase().includes('meetup')) categories.push('meetup')-- return {- slug: '',- type: 'event',- title: event?.name,- date: event?.start_at,- description: '',- thumb: '',- path: '',- url: event?.url ?? '',- tags: categories,- categories,- timezone: event?.timezone ?? 'America/Los_Angeles',- disable_page_build: true,- link: {- href: event?.url ?? '#',- target: '_blank',- },- } as BlogPost- })- setLumaEvents(transformedEvents)- }- } catch (error) {- console.error('Error fetching Luma events:', error)- } finally {- setIsLoadingLuma(false)- }- }-- fetchLumaEvents()- }, [])-- // Combine static and Luma events- const allEvents = useMemo(() => {- const combined = [...staticEvents, ...lumaEvents]- return combined.filter((event: BlogPost) =>- event.end_date ? new Date(event.end_date!) >= new Date() : new Date(event.date!) >= new Date()- )- }, [staticEvents, lumaEvents])-- // Initialize filtered events when allEvents changes- useEffect(() => {- setFilteredEvents(allEvents)- }, [allEvents])-- // Recalculate categories with Luma events included- const categories = useMemo(() => {- const updatedCategories = { ...staticCategories }-- lumaEvents.forEach((event) => {- updatedCategories.all = (updatedCategories.all || 0) + 1-- event.categories?.forEach((category) => {- updatedCategories[category] = (updatedCategories[category] || 0) + 1- })- })-- return updatedCategories- }, [staticCategories, lumaEvents])-- const meta_title = 'Supabase Events: webinars, talks, hackathons, and meetups'- const meta_description = 'Join Supabase and the open-source community at the upcoming events.'-- return (- <>- <NextSeo- title={meta_title}- description={meta_description}- openGraph={{- title: meta_title,- description: meta_description,- url: `https://supabase.com/${router.pathname}`,- images: [- {- url: `https://supabase.com/images/og/supabase-og.png`,- },- ],- }}- additionalLinkTags={[- {- rel: 'alternate',- type: 'application/rss+xml',- href: `https://supabase.com/rss.xml`,- },- ]}- />- <DefaultLayout className="min-h-[80dvh]">- <SectionContainer className="!py-8 lg:!py-16">- <h1 className="h1">- <span className="sr-only">Supabase</span> Events- </h1>- <p className="text-foreground-light">Join us at the following upcoming events</p>- </SectionContainer>- <SectionContainer className="!py-0">- <EventsFilters- allEvents={allEvents}- onDemandEvents={onDemandEvents}- events={filteredEvents}- setEvents={setFilteredEvents}- categories={categories}- />- <div- className={cn(- 'grid -mx-2 sm:-mx-4 py-6 lg:py-6 grid-cols-1',- !filteredEvents?.length && 'mx-0 sm:mx-0'- )}- >- {filteredEvents?.length ? (- filteredEvents- ?.sort((a, b) => new Date(a.date!).getTime() - new Date(b.date!).getTime())- .map((event: BlogPost, idx: number) => (- <div- className="col-span-12 px-2 sm:px-4 [&_a]:last:border-none opacity-0 !scale-100 animate-fade-in"- key={`${event.title}-upcoming-${idx}`}- >- <EventListItem event={event} />- </div>- ))- ) : (- <div className="flex flex-col items-center justify-center py-12">- {isLoadingLuma ? (- <div className="text-center">- <p className="text-foreground-muted">Loading events...</p>- </div>- ) : (- <p className="text-foreground-muted">No results found.</p>- )}- </div>- )}- </div>- </SectionContainer>- <SectionContainer id="on-demand">- <div className="pt-8 border-t">- <h2 className="h3">On Demand</h2>- <p className="text-foreground-light">Replay selected events on your schedule</p>- </div>- <ol- className={cn(- 'grid -mx-2 sm:-mx-4 py-6 lg:py-6',- 'grid-cols-12 lg:gap-4',- !onDemandEvents?.length && 'mx-0 sm:mx-0'- )}- >- {onDemandEvents?.length ? (- onDemandEvents?.map((event: BlogPost, idx: number) => (- <div- className="col-span-12 px-2 sm:px-4 [&_a]:last:border-none opacity-0 !scale-100 animate-fade-in"- key={`${event.title}-upcoming-${idx}`}- >- <EventListItem event={event} />- </div>- ))- ) : (- <p className="text-sm py-2 sm:py-4 text-lighter col-span-full italic opacity-0 !scale-100 animate-fade-in">- No results found- </p>- )}- </ol>- </SectionContainer>- </DefaultLayout>- </>- )-}--export async function getStaticProps() {- const { data: meetups, error } = await supabase- .from('meetups')- .select('id, city, country, link, start_at, timezone, launch_week')- .eq('is_published', true)-- if (error) console.log('meetups error: ', error)-- const meetupEvents: BlogPost[] =- meetups?.map((meetup: any) => ({- slug: '',- type: 'event',- title: `Launch Week ${meetup.launch_week.slice(2)} Meetup: ${meetup.city}, ${meetup.country}`,- date: meetup.start_at,- description: '',- thumb: '',- path: '',- url: meetup.link ?? '',- tags: ['meetup', 'launch-week'],- categories: ['meetup'],- timezone: meetup.timezone ?? 'America/Los_Angeles',- disable_page_build: true,- link: {- href: meetup.link ?? '#',- target: '_blank',- },- })) ?? []-- const staticEvents = getSortedPosts({- directory: '_events',- runner: '** EVENTS PAGE **',- }) as BlogPost[]-- const allEvents = [...staticEvents, ...meetupEvents]- const upcomingEvents = allEvents.filter((event: BlogPost) =>- event.end_date ? new Date(event.end_date!) >= new Date() : new Date(event.date!) >= new Date()- )- const onDemandEvents = allEvents.filter(- (event: BlogPost) => new Date(event.date!) < new Date() && event.onDemand === true- )-- const categories = upcomingEvents.reduce(- (acc: { [key: string]: number }, event: BlogPost) => {- acc.all = (acc.all || 0) + 1-- event.categories?.forEach((category) => {- acc[category] = (acc[category] || 0) + 1- })-- return acc- },- { all: 0 }- )-- return {- props: {- events: upcomingEvents,- onDemandEvents,- categories,- },- }-}