The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Add redirects to www for kb project (#49780)
Jeremias Menichellidd57c1476f4a
diff --git a/apps/kb/astro.config.mjs b/apps/kb/astro.config.mjsindex 23662b95a67..f44675364a7 100644--- a/apps/kb/astro.config.mjs+++ b/apps/kb/astro.config.mjs@@ -37,6 +37,7 @@ const ssrLodashEs = {// https://astro.build/configexport default defineConfig({base: '/kb',+ trailingSlash: 'ignore',integrations: [react()],vite: {ssr: {diff --git a/apps/kb/vercel.json b/apps/kb/vercel.jsonindex 8df7e53755b..44d765d2307 100644--- a/apps/kb/vercel.json+++ b/apps/kb/vercel.json@@ -1,3 +1,4 @@{- "buildCommand": "pnpm build"+ "buildCommand": "pnpm build",+ "redirects": [{ "source": "/", "destination": "/kb", "permanent": false }]}diff --git a/apps/www/.env.local.example b/apps/www/.env.local.exampleindex 517bb89bd7b..0c5e2947a53 100644--- a/apps/www/.env.local.example+++ b/apps/www/.env.local.example@@ -10,6 +10,7 @@ NEXT_PUBLIC_DOCS_URL=http://localhost:3005NEXT_PUBLIC_ENVIRONMENT=localNEXT_PUBLIC_HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001NEXT_PUBLIC_IS_PLATFORM=true+NEXT_PUBLIC_KB_URL=http://localhost:3008/kbNEXT_PUBLIC_MARKETPLACE_API_URL=https://fgxbxpvumhvzrhqngsyu.supabase.coNEXT_PUBLIC_MARKETPLACE_PUBLISHABLE_KEY=sb_publishable_VuF5ZvGqj6ODhZgN1J_vMw_YbiEs1R6NEXT_PUBLIC_MISC_USE_ANON_KEY=sb_publishable_t45SVhgymMJOuamUXzJzPQ_sY-tSoUrdiff --git a/apps/www/lib/rewrites.js b/apps/www/lib/rewrites.jsindex c11c0129b13..6c7aba2f384 100644--- a/apps/www/lib/rewrites.js+++ b/apps/www/lib/rewrites.js@@ -39,6 +39,14 @@ const rewrites = [source: '/design-system/:path*',destination: `${process.env.NEXT_PUBLIC_DESIGN_SYSTEM_URL}/:path*`,},+ {+ source: '/kb',+ destination: `${process.env.NEXT_PUBLIC_KB_URL}`,+ },+ {+ source: '/kb/:path*',+ destination: `${process.env.NEXT_PUBLIC_KB_URL}/:path*`,+ },{source: '/evals',destination: 'https://supabase-evals.vercel.app',diff --git a/apps/www/turbo.jsonc b/apps/www/turbo.jsoncindex ea5a9af80f3..09078f17514 100644--- a/apps/www/turbo.jsonc+++ b/apps/www/turbo.jsonc@@ -21,6 +21,7 @@"NEXT_PUBLIC_DOCS_URL","NEXT_PUBLIC_REFERENCE_DOCS_URL","NEXT_PUBLIC_LIBRARY_URL",+ "NEXT_PUBLIC_KB_URL",// Temporary fallback during the production environment-variable migration."NEXT_PUBLIC_UI_LIBRARY_URL","NEXT_PUBLIC_SUPABASE_URL",