Skip to content

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

try out new docs

Inian3f9e86935bda
diff --git a/apps/reference/docusaurus.config.js b/apps/reference/docusaurus.config.js
index 5fcca57f4a5..5c4ff65eb8b 100644
--- a/apps/reference/docusaurus.config.js
+++ b/apps/reference/docusaurus.config.js
@@ -10,7 +10,7 @@ const config = {
title: 'Supabase',
tagline: 'The open source Firebase alternative.',
url: 'https://supabase.com',
- baseUrl: '/docs/',
+ baseUrl: '/docs1/',
onBrokenLinks: 'ignore', // TODO: remove this when going into prod
// onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
diff --git a/apps/reference/vercel.json b/apps/reference/vercel.json
index e813dba0986..b2422c071c0 100644
--- a/apps/reference/vercel.json
+++ b/apps/reference/vercel.json
@@ -2,7 +2,7 @@
"redirects": [
{
"source": "/",
- "destination": "/docs"
+ "destination": "/docs1"
}
]
}
diff --git a/apps/www/next.config.js b/apps/www/next.config.js
index 669d2505efb..caa71155fe1 100644
--- a/apps/www/next.config.js
+++ b/apps/www/next.config.js
@@ -61,6 +61,20 @@ module.exports = withMDX({
source: '/docs/:path*',
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
},
+ {
+ source: '/docs1',
+ destination: `${process.env.NEXT_PUBLIC_REFERENCE_DOCS_URL}`,
+ },
+ {
+ // redirect /docs/
+ // trailing slash caused by docusaurus issue with multizone
+ source: '/docs1/',
+ destination: `${process.env.NEXT_PUBLIC_REFERENCE_DOCS_URL}`,
+ },
+ {
+ source: '/docs1/:path*',
+ destination: `${process.env.NEXT_PUBLIC_REFERENCE_DOCS_URL}/:path*`,
+ },
{
source: '/launch-week',
destination: `${process.env.NEXT_PUBLIC_LAUNCHWEEKSITE_URL}`,