Skip to content

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

chore: update sitemap

Jonathan Summers-Muir84c2cad2ae87
diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjs
index 8e1234ddcd3..43d5269f5ab 100644
--- a/apps/www/internals/generate-sitemap.mjs
+++ b/apps/www/internals/generate-sitemap.mjs
@@ -15,6 +15,7 @@ async function generate() {
'pages/*/*.tsx',
'data/**/*.mdx',
'_blog/*.mdx',
+ '_alternatives/*.mdx',
'!pages/index.tsx',
'!data/*.mdx',
'!pages/_*.js',
@@ -33,6 +34,7 @@ async function generate() {
.replace('pages', '')
// add a `/` for blog posts
.replace('_blog', '/blog')
+ .replace('_alternatives', '/alternatives')
.replace('.tsx', '')
.replace('.mdx', '')
// replace the paths for nested 'index' based routes
@@ -42,6 +44,9 @@ async function generate() {
let route = path === '/index' ? '' : path
+ if (route === '/alternatives/[slug]') return null
+ if (route === '/partners/[slug]') return null
+
//
// blog specific urls
//
diff --git a/apps/www/pages/[slug].module.css b/apps/www/pages/[slug].module.css
deleted file mode 100644
index f5f939a0445..00000000000
--- a/apps/www/pages/[slug].module.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/* .toc a {
- text-decoration: none !important;
- font-weight: 400 !important;
-}
-
-.toc > ul > li {
- padding-left: 0 !important;
-}
-
-.toc li {
- @apply text-sm !important;
- padding-left: 1rem !important;
-}
-
-.toc ul > li:before {
- content: '';
- position: absolute;
- background-color: none;
- border-radius: 50%;
- width: 0 !important;
- height: 0 !important;
- top: 0.6875em;
- left: 0.25em;
-}
-
-.header:hover svg,
-.header svg:hover {
- display: inline-block;
-}
-
-.article h1,
-.article h2,
-.article h3,
-.article h4,
-.article h5 {
- font-weight: 500 !important;
-}
-
-.article {
- @apply mb-16;
-}
-
-.article > div > pre {
- padding: 0;
- background: none;
-} */
diff --git a/apps/www/pages/[slug].tsx b/apps/www/pages/[slug].tsx
deleted file mode 100644
index 1a81a03bbdd..00000000000
--- a/apps/www/pages/[slug].tsx
+++ /dev/null
@@ -1,164 +0,0 @@
-import { Badge, Card, Divider, IconChevronLeft, IconFile, Space } from '@supabase/ui'
-import matter from 'gray-matter'
-import authors from 'lib/authors.json'
-import hydrate from 'next-mdx-remote/hydrate'
-import renderToString from 'next-mdx-remote/render-to-string'
-import { NextSeo } from 'next-seo'
-import Link from 'next/link'
-import Image from 'next/image'
-import { useRouter } from 'next/router'
-import React from 'react'
-import ReactMarkdown from 'react-markdown'
-import CodeBlock from '~/components/CodeBlock/CodeBlock'
-import CTABanner from '~/components/CTABanner'
-import DefaultLayout from '~/components/Layouts/Default'
-import Quote from '~/components/Quote'
-import Avatar from '~/components/Avatar'
-import ImageGrid from '~/components/ImageGrid'
-import { generateReadingTime } from '~/lib/helpers'
-import { getAllPostSlugs, getPostdata, getSortedPosts } from '~/lib/posts'
-import blogStyles from './[slug].module.css'
-import LayoutComparison from '~/layouts/comparison'
-
-// import all components used in blog articles here
-// for instance, if you use a button, you must add `Button` in the components object below.
-const components = {
- CodeBlock,
- Quote,
- Avatar,
- code: (props: any) => {
- return <CodeBlock {...props} />
- },
- ImageGrid,
-}
-
-// plugins for next-mdx-remote
-const gfm = require('remark-gfm')
-const slug = require('rehype-slug')
-
-// table of contents extractor
-const toc = require('markdown-toc')
-
-export async function getStaticPaths() {
- console.log('slug', slug)
- console.log('gfm', gfm)
- const paths = getAllPostSlugs('_comparison_landing_pages')
- return {
- paths,
- fallback: false,
- }
-}
-
-export async function getStaticProps({ params }: any) {
- const filePath = `${params.slug}`
- const postContent = await getPostdata(filePath, '_comparison_landing_pages')
- const { data, content } = matter(postContent)
-
- const mdxSource: any = await renderToString(content, {
- components,
- scope: data,
- mdxOptions: {
- remarkPlugins: [gfm],
- rehypePlugins: [slug],
- },
- })
-
- const relatedPosts = getSortedPosts('_comparison_landing_pages', 5, mdxSource.scope.tags)
-
- const allPosts = getSortedPosts('_comparison_landing_pages')
-
- const currentIndex = allPosts
- .map(function (e) {
- return e.slug
- })
- .indexOf(filePath)
-
- const nextPost = allPosts[currentIndex + 1]
- const prevPost = allPosts[currentIndex - 1]
-
- return {
- props: {
- prevPost: currentIndex === 0 ? null : prevPost ? prevPost : null,
- nextPost: currentIndex === allPosts.length ? null : nextPost ? nextPost : null,
- relatedPosts,
- blog: {
- slug: `${params.year}/${params.month}/${params.day}/${params.slug}`,
- content: mdxSource,
- ...data,
- toc: toc(content, { maxdepth: data.toc_depth ? data.toc_depth : 2 }),
- },
- },
- }
-}
-
-function BlogPostPage(props: any) {
- // @ts-ignore
- const content = hydrate(props.blog.content, { components })
- const authorArray = props.blog.author.split(',')
-
- const author = []
- for (let i = 0; i < authorArray.length; i++) {
- author.push(
- // @ts-ignore
- authors.find((authors: string) => {
- // @ts-ignore
- return authors.author_id === authorArray[i]
- })
- )
- }
-
- const { basePath } = useRouter()
-
- const NextCard = (props: any) => {
- const { post, label, className } = props
- return (
- <Link href={`/blog/${post.url}`} as={`/blog/${post.url}`}>
- <div className={className}>
- <div className="border-scale-500 hover:bg-scale-100 dark:hover:bg-scale-300 cursor-pointer rounded border p-6 transition">
- <div className="space-y-4">
- <div>
- <p className="text-scale-900 text-sm">{label}</p>
- </div>
- <div>
- <h4 className="text-scale-1200 text-lg">{post.title}</h4>
- <p className="small">{post.date}</p>
- </div>
- </div>
- </div>
- </div>
- </Link>
- )
- }
-
- const toc = props.blog.toc && (
- <div className="space-y-8 py-8 lg:py-0">
- <div>
- <div className="space-x-2">
- {props.blog.tags.map((tag: string) => {
- return (
- <a href={`/blog/tags/${tag}`} key={`category-badge-${tag}`}>
- <Badge>{tag}</Badge>
- </a>
- )
- })}
- </div>
- </div>
- <div>
- <p className="text-scale-1200">On this page</p>
- <div>
- <div className={[blogStyles['toc'], 'prose prose-toc'].join(' ')}>
- <ReactMarkdown plugins={[gfm]}>{props.blog.toc.content}</ReactMarkdown>
- </div>
- </div>
- </div>
- </div>
- )
-
- return <LayoutComparison components={components} props={props} gfm={gfm} slug={slug} />
-}
-
-// function BlogPostPage() {
-// return <h1>blog post</h1>
-// }
-
-export default BlogPostPage
diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xml
index 170d40bb3ef..7decc955855 100644
--- a/apps/www/public/sitemap_www.xml
+++ b/apps/www/public/sitemap_www.xml
@@ -66,12 +66,6 @@
<changefreq>0.5</changefreq>
</url>
- <url>
- <loc>https://supabase.com/partners/[slug]</loc>
- <changefreq>weekly</changefreq>
- <changefreq>0.5</changefreq>
- </url>
-
<url>
<loc>https://supabase.com/storage</loc>
<changefreq>weekly</changefreq>
@@ -649,4 +643,24 @@
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
+
+ <url>
+ <loc
+ >https://supabase.com/blog/2022/05/26/how-supabase-accelerates-development-of-all-pull-together</loc
+ >
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/alternatives/supabase-vs-firebase</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/alternatives/supabase-vs-heroku-postgres</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
</urlset>