Skip to content

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

fix www sitemap generator (#28938)

Francesco Sansalvadore5c8a885bf5cd
diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjs
index 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 null
if (route === '/customers/[slug]') return null
if (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 null
if (route === '/launch-week/ticket-image') return null
+ if (route === '/launch-week/tickets/[username]') return null
/**
* Blog based urls
diff --git a/apps/www/pages/auth/Auth.tsx b/apps/www/pages/auth.tsx
similarity index 100%
rename from apps/www/pages/auth/Auth.tsx
rename to apps/www/pages/auth.tsx
diff --git a/apps/www/pages/auth/index.tsx b/apps/www/pages/auth/index.tsx
deleted file mode 100644
index 43806d558f9..00000000000
--- a/apps/www/pages/auth/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Auth from './Auth'
-
-export default Auth
diff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers.tsx
similarity index 99%
rename from apps/www/pages/careers/index.tsx
rename to apps/www/pages/careers.tsx
index 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.tsx
similarity index 98%
rename from apps/www/pages/customers/index.tsx
rename to apps/www/pages/customers.tsx
index 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.tsx
similarity index 100%
rename from apps/www/pages/database/Database.tsx
rename to apps/www/pages/database.tsx
diff --git a/apps/www/pages/database/index.tsx b/apps/www/pages/database/index.tsx
deleted file mode 100644
index 446df005cc9..00000000000
--- a/apps/www/pages/database/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Database from './Database'
-
-export default Database
diff --git a/apps/www/pages/ga-week/index.tsx b/apps/www/pages/ga-week.tsx
similarity index 100%
rename from apps/www/pages/ga-week/index.tsx
rename to apps/www/pages/ga-week.tsx
diff --git a/apps/www/pages/nextjs/Nextjs.tsx b/apps/www/pages/nextjs.tsx
similarity index 100%
rename from apps/www/pages/nextjs/Nextjs.tsx
rename to apps/www/pages/nextjs.tsx
diff --git a/apps/www/pages/nextjs/index.tsx b/apps/www/pages/nextjs/index.tsx
deleted file mode 100644
index 1f3c1850d7d..00000000000
--- a/apps/www/pages/nextjs/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Nextjs from './Nextjs'
-
-export default Nextjs
diff --git a/apps/www/pages/open-source/index.tsx b/apps/www/pages/open-source.tsx
similarity index 100%
rename from apps/www/pages/open-source/index.tsx
rename to apps/www/pages/open-source.tsx
diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing.tsx
similarity index 100%
rename from apps/www/pages/pricing/index.tsx
rename to apps/www/pages/pricing.tsx
diff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime.tsx
similarity index 99%
rename from apps/www/pages/realtime/Realtime.tsx
rename to apps/www/pages/realtime.tsx
index 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.tsx
deleted file mode 100644
index a8eea95247e..00000000000
--- a/apps/www/pages/realtime/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Realtime from './Realtime'
-
-export default Realtime
diff --git a/apps/www/pages/storage/Storage.tsx b/apps/www/pages/storage.tsx
similarity index 100%
rename from apps/www/pages/storage/Storage.tsx
rename to apps/www/pages/storage.tsx
diff --git a/apps/www/pages/storage/index.tsx b/apps/www/pages/storage/index.tsx
deleted file mode 100644
index 5ae171d948f..00000000000
--- a/apps/www/pages/storage/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Storage from './Storage'
-
-export default Storage
diff --git a/apps/www/pages/vector/Vector.tsx b/apps/www/pages/vector.tsx
similarity index 100%
rename from apps/www/pages/vector/Vector.tsx
rename to apps/www/pages/vector.tsx
diff --git a/apps/www/pages/vector/Vector.module.css b/apps/www/pages/vector/Vector.module.css
deleted file mode 100644
index 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.tsx
deleted file mode 100644
index 1f88c521b97..00000000000
--- a/apps/www/pages/vector/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-import Vector from './Vector'
-
-export default Vector
diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xml
index 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.css
similarity index 100%
rename from apps/www/pages/careers/career.module.css
rename to apps/www/styles/career.module.css
diff --git a/apps/www/pages/customers/customers.module.css b/apps/www/styles/customers.module.css
similarity index 100%
rename from apps/www/pages/customers/customers.module.css
rename to apps/www/styles/customers.module.css
diff --git a/apps/www/pages/realtime/Realtime.module.css b/apps/www/styles/realtime.module.css
similarity index 100%
rename from apps/www/pages/realtime/Realtime.module.css
rename to apps/www/styles/realtime.module.css