The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix www sitemap generator (#28938)
Francesco Sansalvadore5c8a885bf5cd
diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjsindex b1ef7263aad..1e6ee0f5119 100644--- a/apps/www/internals/generate-sitemap.mjs+++ b/apps/www/internals/generate-sitemap.mjs@@ -13,19 +13,19 @@ async function generate() {const pages = await globby(['pages/*.js','pages/*.tsx',- 'pages/*/*.tsx',+ 'pages/*.mdx',+ 'pages/**/*.tsx','data/**/*.mdx','_blog/*.mdx','_case-studies/*.mdx','_customers/*.mdx','_events/*.mdx','_alternatives/*.mdx',- '!pages/index.tsx','!data/*.mdx','!pages/_*.js',- '!pages/*/index.tsx',+ '!pages/_*.tsx','!pages/api',- '!pages/404.js',+ '!pages/404.tsx','.next/server/pages/partners/integrations/*.html','.next/server/pages/partners/experts/*.html',])@@ -39,7 +39,6 @@ async function generate() {<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">${pages- .filter((page) => !page.includes('_document.tsx')).map((page) => {const path = page.replace('.next/server/pages', '')@@ -53,13 +52,8 @@ async function generate() {.replace('_alternatives', '/alternatives').replace('.tsx', '').replace('.mdx', '')- // replace the paths for nested 'index' based routes- .replace('/auth/Auth', '/auth')- .replace('/database/Database', '/database')- .replace('/storage/Storage', '/storage')- .replace('/realtime/Realtime', '/realtime')- .replace('/edge-functions/edge-functions', '/edge-functions')- .replace('/nextjs/Nextjs', '/nextjs')+ // replace /{directory}/index with /{directory}+ .replace(/\/([^\/]+)\/index/, '/$1')let route = path === '/index' ? '' : path@@ -68,7 +62,11 @@ async function generate() {if (route === '/case-studies/[slug]') return nullif (route === '/customers/[slug]') return nullif (route === '/events/[slug]') return null+ if (route === '/blog/categories/[category]') return null+ if (route === '/partners/experts/[slug]') return null+ if (route === '/partners/integrations/[slug]') return nullif (route === '/launch-week/ticket-image') return null+ if (route === '/launch-week/tickets/[username]') return null/*** Blog based urlsdiff --git a/apps/www/pages/auth/Auth.tsx b/apps/www/pages/auth.tsxsimilarity index 100%rename from apps/www/pages/auth/Auth.tsxrename to apps/www/pages/auth.tsxdiff --git a/apps/www/pages/auth/index.tsx b/apps/www/pages/auth/index.tsxdeleted file mode 100644index 43806d558f9..00000000000--- a/apps/www/pages/auth/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Auth from './Auth'--export default Authdiff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers.tsxsimilarity index 99%rename from apps/www/pages/careers/index.tsxrename to apps/www/pages/careers.tsxindex 0a850939cbf..65be2b81c37 100644--- a/apps/www/pages/careers/index.tsx+++ b/apps/www/pages/careers.tsx@@ -9,7 +9,7 @@ import Globe from '~/components/Globe'import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'import career from '~/data/career.json'-import Styles from './career.module.css'+import Styles from '~/styles/career.module.css'import { GlobeAltIcon } from '@heroicons/react/outline'export async function getStaticProps() {diff --git a/apps/www/pages/customers/index.tsx b/apps/www/pages/customers.tsxsimilarity index 98%rename from apps/www/pages/customers/index.tsxrename to apps/www/pages/customers.tsxindex ccec8832659..4167cfb5baf 100644--- a/apps/www/pages/customers/index.tsx+++ b/apps/www/pages/customers.tsx@@ -10,7 +10,7 @@ import { getSortedPosts } from '~/lib/posts'import DefaultLayout from '~/components/Layouts/Default'import type PostTypes from '~/types/post'import { motion } from 'framer-motion'-import styles from './customers.module.css'+import styles from '~/styles/customers.module.css'import Link from 'next/link'import { GlassPanel } from 'ui-patterns/GlassPanel'import WebinarAnnouncement from '~/components/Announcement/WebinarAnnouncement'diff --git a/apps/www/pages/database/Database.tsx b/apps/www/pages/database.tsxsimilarity index 100%rename from apps/www/pages/database/Database.tsxrename to apps/www/pages/database.tsxdiff --git a/apps/www/pages/database/index.tsx b/apps/www/pages/database/index.tsxdeleted file mode 100644index 446df005cc9..00000000000--- a/apps/www/pages/database/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Database from './Database'--export default Databasediff --git a/apps/www/pages/ga-week/index.tsx b/apps/www/pages/ga-week.tsxsimilarity index 100%rename from apps/www/pages/ga-week/index.tsxrename to apps/www/pages/ga-week.tsxdiff --git a/apps/www/pages/nextjs/Nextjs.tsx b/apps/www/pages/nextjs.tsxsimilarity index 100%rename from apps/www/pages/nextjs/Nextjs.tsxrename to apps/www/pages/nextjs.tsxdiff --git a/apps/www/pages/nextjs/index.tsx b/apps/www/pages/nextjs/index.tsxdeleted file mode 100644index 1f3c1850d7d..00000000000--- a/apps/www/pages/nextjs/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Nextjs from './Nextjs'--export default Nextjsdiff --git a/apps/www/pages/open-source/index.tsx b/apps/www/pages/open-source.tsxsimilarity index 100%rename from apps/www/pages/open-source/index.tsxrename to apps/www/pages/open-source.tsxdiff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing.tsxsimilarity index 100%rename from apps/www/pages/pricing/index.tsxrename to apps/www/pages/pricing.tsxdiff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime.tsxsimilarity index 99%rename from apps/www/pages/realtime/Realtime.tsxrename to apps/www/pages/realtime.tsxindex 5f83903e2c5..fd3953565ee 100644--- a/apps/www/pages/realtime/Realtime.tsx+++ b/apps/www/pages/realtime.tsx@@ -10,7 +10,7 @@ import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'import APISection from '~/components/Sections/APISection'import ProductHeader from '~/components/Sections/ProductHeader'-import RealtimeStyles from './Realtime.module.css'+import RealtimeStyles from '~/styles/realtime.module.css'import ProductsNav from '~/components/Products/ProductsNav'import 'swiper/css'diff --git a/apps/www/pages/realtime/index.tsx b/apps/www/pages/realtime/index.tsxdeleted file mode 100644index a8eea95247e..00000000000--- a/apps/www/pages/realtime/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Realtime from './Realtime'--export default Realtimediff --git a/apps/www/pages/storage/Storage.tsx b/apps/www/pages/storage.tsxsimilarity index 100%rename from apps/www/pages/storage/Storage.tsxrename to apps/www/pages/storage.tsxdiff --git a/apps/www/pages/storage/index.tsx b/apps/www/pages/storage/index.tsxdeleted file mode 100644index 5ae171d948f..00000000000--- a/apps/www/pages/storage/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Storage from './Storage'--export default Storagediff --git a/apps/www/pages/vector/Vector.tsx b/apps/www/pages/vector.tsxsimilarity index 100%rename from apps/www/pages/vector/Vector.tsxrename to apps/www/pages/vector.tsxdiff --git a/apps/www/pages/vector/Vector.module.css b/apps/www/pages/vector/Vector.module.cssdeleted file mode 100644index a58d8edb4ea..00000000000--- a/apps/www/pages/vector/Vector.module.css+++ /dev/null@@ -1,250 +0,0 @@-.shape {- transform-origin: top left;- animation: shape 20s infinite;-}--@keyframes shape {- 0%,- 5% {- opacity: 1;- transform: scale(0, 0);- border-radius: 0;- border-color: hsla(153, 60%, 28%, 1);- box-shadow: none;- border-width: 3px;- }- 10%,- 37.3% {- opacity: 1;- transform: scale(1, 1);- border-radius: 0;- border-color: hsla(153, 60%, 28%, 1);- box-shadow: none;- border-width: 3px;- }- 38%,- 42% {- opacity: 1;- transform: scale(1, 1);- border-radius: 0px;- border-color: #ffffff;- box-shadow: none;- border-width: 3px;- }- 45%,- 48.2% {- opacity: 1;- transform: scale(1, 1);- border-radius: 10px;- border-color: #ffffff;- box-shadow: none;- border-width: 3px;- }- 49%,- 71.2% {- opacity: 1;- transform: scale(1, 1);- border-radius: 10px;- border-color: hsla(153, 60%, 28%, 1);- box-shadow: none;- border-width: 3px;- }- 72%,- 74% {- opacity: 1;- transform: scale(1, 1);- border-radius: 10px;- border-color: #ffffff;- box-shadow: none;- border-width: 3px;- }- 76%,- 92% {- opacity: 1;- transform: scale(1, 1);- border-radius: 10px;- border-color: #ffffff;- box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.2);- border-width: 1.5px;- }- 94%,- 100% {- opacity: 1;- transform: scale(1, 1);- border-radius: 10px;- border-color: hsla(153, 60%, 28%, 1);- box-shadow: 0px 7px 20px 0px rgba(0, 0, 0, 0.2);- border-width: 1.5px;- }-}--.button-text {- animation: button-text 20s infinite;-}--@keyframes button-text {- 0%,- 78.5% {- opacity: 0;- font-family: 'Arial';- background-color: transparent;- }- 79%,- 84% {- opacity: 1;- font-family: 'Arial';- background-color: transparent;- }- 84.5%,- 88% {- opacity: 1;- font-family: 'Arial';- background-color: rgba(0, 0, 0, 0.4);- }- 88.1%,- 100% {- opacity: 1;- font-family: 'custom-font';- background-color: transparent;- }-}--.cursor-one {- animation: cursor-one 20s infinite;-}--@keyframes cursor-one {- 0% {- transform: translate(0px, 0px);- }- 2%,- 5% {- transform: translate(-202px, -63px);- }- 10%,- 11% {- transform: translate(-16px, -15px);- }- 13%,- 100% {- transform: translate(0, 0);- }-}--.cursor-two {- animation: cursor-two 20s infinite;-}--@keyframes cursor-two {- 0%,- 17% {- transform: scale(1) translate(-200px, 300px);- }- 20%,- 32% {- transform: scale(1) translate(-85px, 89px);- }- 34%,- 37.1% {- transform: scale(1) translate(0px, 0px);- }- 37.4%,- 37.7% {- transform: scale(0.95) translate(0px, 0px);- }- 38%,- 46% {- transform: scale(1) translate(0px, 0px);- }- 49%,- 100% {- transform: scale(1) translate(-50px, 100px);- }-}--.cursor-two-comment {- animation: cursor-two-comment 20s infinite;-}--@keyframes cursor-two-comment {- 0%,- 22% {- opacity: 0;- transform: scale(0.95) translate(0px, 5px);- }- 24%,- 30% {- opacity: 1;- transform: scale(1) translate(0px, 0px);- }- 32%,- 100% {- opacity: 0;- transform: scale(0.95) translate(0px, 5px);- }-}--.cursor-three {- animation: cursor-three 20s infinite;-}--@keyframes cursor-three {- 0%,- 50% {- transform: scale(1) translate(50px, -250px);- }- 53%,- 66% {- transform: scale(1) translate(-40px, -120px);- }- 68%,- 71% {- transform: scale(1) translate(0px, 0px);- }- 71.3%,- 71.6% {- transform: scale(0.95) translate(0px, 0px);- }- 71.9%,- 80% {- transform: scale(1) translate(0px, 0px);- }- 82%,- 84% {- transform: scale(1) translate(-20px, 10px);- }- 84.5%,- 85% {- transform: scale(0.95) translate(-20px, 10px);- }- 85.5%,- 91% {- transform: scale(1) translate(-20px, 10px);- }- 93%,- 100% {- transform: scale(1) translate(0px, -80px);- }-}--.cursor-three-comment {- animation: cursor-three-comment 20s infinite;-}--@keyframes cursor-three-comment {- 0%,- 56% {- opacity: 0;- transform: scale(0.95) translate(0px, 5px);- }- 58%,- 64% {- opacity: 1;- transform: scale(1) translate(0px, 0px);- }- 66%,- 100% {- opacity: 0;- transform: scale(0.95) translate(0px, 5px);- }-}diff --git a/apps/www/pages/vector/index.tsx b/apps/www/pages/vector/index.tsxdeleted file mode 100644index 1f88c521b97..00000000000--- a/apps/www/pages/vector/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-import Vector from './Vector'--export default Vectordiff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xmlindex 139c3e902da..c7a1e90402f 100644--- a/apps/www/public/sitemap_www.xml+++ b/apps/www/public/sitemap_www.xml@@ -1,13 +1,13 @@<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>- <loc>https://supabase.com/404</loc>+ <loc>https://supabase.com/aup</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url>- <loc>https://supabase.com/_app</loc>+ <loc>https://supabase.com/auth</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>@@ -30,6 +30,12 @@<priority>0.5</priority></url>+ <url>+ <loc>https://supabase.com/careers</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>+<url><loc>https://supabase.com/changelog</loc><changefreq>weekly</changefreq>@@ -42,18 +48,102 @@<priority>0.5</priority></url>+ <url>+ <loc>https://supabase.com/customers</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/database</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>+<url><loc>https://supabase.com/edge-functions</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>+ <url>+ <loc>https://supabase.com/ga-week</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>+<url><loc>https://supabase.com/ga</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>+ <url>+ <loc>https://supabase.com</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/nextjs</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/open-source</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/pricing</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/privacy-240522</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/privacy</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/realtime</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/security</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/sla</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/storage</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/support-policy</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>+<url><loc>https://supabase.com/support</loc><changefreq>weekly</changefreq>@@ -61,7 +151,13 @@</url><url>- <loc>https://supabase.com/auth</loc>+ <loc>https://supabase.com/terms</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/vector</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>@@ -73,7 +169,7 @@</url><url>- <loc>https://supabase.com/database</loc>+ <loc>https://supabase.com/launch-week</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>@@ -85,25 +181,49 @@</url><url>- <loc>https://supabase.com/nextjs</loc>+ <loc>https://supabase.com/partners</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url>- <loc>https://supabase.com/realtime</loc>+ <loc>https://supabase.com/blog/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url>- <loc>https://supabase.com/storage</loc>+ <loc>https://supabase.com/launch-week/6</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/launch-week/7</loc><changefreq>weekly</changefreq><priority>0.5</priority></url><url>- <loc>https://supabase.com/vector/Vector</loc>+ <loc>https://supabase.com/launch-week/8</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/launch-week/x</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>@@ -1766,6 +1886,102 @@<priority>0.5</priority></url>+ <url>+ <loc>https://supabase.com/blog/github-copilot-extension-for-vs-code</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/postgres-new</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/supabase-realtime-broadcast-and-presence-authorization</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/snaplet-is-now-open-source</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/third-party-auth-mfa-phone-send-hooks</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/log-drains</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/launch-week-12-top-10</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/pg-graphql-1-5-7</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/platform-access-control</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/postgres-foreign-data-wrappers-with-wasm</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/postgrest-12-2</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/python-support</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/supabase-book-by-david-lorenz</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/vec2pg</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/mozilla-llamafile-in-supabase-edge-functions</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>++ <url>+ <loc>https://supabase.com/blog/supabase-lw12-hackathon</loc>+ <changefreq>weekly</changefreq>+ <priority>0.5</priority>+ </url>+<url><loc>https://supabase.com/customers/berriai</loc><changefreq>weekly</changefreq>diff --git a/apps/www/pages/careers/career.module.css b/apps/www/styles/career.module.csssimilarity index 100%rename from apps/www/pages/careers/career.module.cssrename to apps/www/styles/career.module.cssdiff --git a/apps/www/pages/customers/customers.module.css b/apps/www/styles/customers.module.csssimilarity index 100%rename from apps/www/pages/customers/customers.module.cssrename to apps/www/styles/customers.module.cssdiff --git a/apps/www/pages/realtime/Realtime.module.css b/apps/www/styles/realtime.module.csssimilarity index 100%rename from apps/www/pages/realtime/Realtime.module.cssrename to apps/www/styles/realtime.module.css