Skip to content

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

chore(design-system): rewrite to design-system site (#42187)

Danny Whiteadc5cd822660
diff --git a/apps/www/.env b/apps/www/.env
index 20b7e81d5ce..ec35e2283db 100644
--- a/apps/www/.env
+++ b/apps/www/.env
@@ -9,3 +9,4 @@ 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"
+NEXT_PUBLIC_DESIGN_SYSTEM_URL="http://localhost:3003"
diff --git a/apps/www/.env.local.example b/apps/www/.env.local.example
index 91311125ac9..d6fee8a9b0a 100644
--- a/apps/www/.env.local.example
+++ b/apps/www/.env.local.example
@@ -1,5 +1,6 @@
# Copy this file in the same folder, rename it to .env.local and fill out the env vars to get www working
NEXT_PUBLIC_API_URL="http://localhost:8080/platform"
+NEXT_PUBLIC_DESIGN_SYSTEM_URL="http://localhost:3003"
NEXT_PUBLIC_DOCS_URL="http://localhost:3005"
NEXT_PUBLIC_MISC_USE_ANON_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9idWxkYW5ycHRsb2t0eGNmZnZuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTg2MTQ2ODUsImV4cCI6MjAzNDE5MDY4NX0.NFt49g6DFkc1X5khCzN5p01iAVo2TMxlx88cY1V0E2M"
NEXT_PUBLIC_MISC_USE_URL="https://obuldanrptloktxcffvn.supabase.co"
diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.js
index 0392c18c496..bfab86bc92b 100644
--- a/apps/www/lib/redirects.js
+++ b/apps/www/lib/redirects.js
@@ -3038,6 +3038,11 @@ module.exports = [
source: '/mcp',
destination: '/docs/guides/getting-started/mcp',
},
+ {
+ permanent: true,
+ source: '/design',
+ destination: '/design-system',
+ },
// marketing
diff --git a/apps/www/lib/rewrites.js b/apps/www/lib/rewrites.js
index a4e58dea85c..0e767175e13 100644
--- a/apps/www/lib/rewrites.js
+++ b/apps/www/lib/rewrites.js
@@ -29,6 +29,14 @@ const rewrites = [
source: '/ui/:path*',
destination: `${process.env.NEXT_PUBLIC_UI_LIBRARY_URL}/:path*`,
},
+ {
+ source: '/design-system',
+ destination: `${process.env.NEXT_PUBLIC_DESIGN_SYSTEM_URL}`,
+ },
+ {
+ source: '/design-system/:path*',
+ destination: `${process.env.NEXT_PUBLIC_DESIGN_SYSTEM_URL}/:path*`,
+ },
{
source: '/new-docs',