The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(Kb) - sitemap fix (#52044)
Kody Jackson8b3c47006ed4
diff --git a/apps/kb/astro.config.mjs b/apps/kb/astro.config.mjsindex 8715ce6f940..7b3ddc79da6 100644--- a/apps/kb/astro.config.mjs+++ b/apps/kb/astro.config.mjs@@ -1,18 +1,16 @@// @ts-checkimport { createRequire } from 'node:module'import path from 'node:path'-import { unified } from '@astrojs/markdown-remark'import mdx from '@astrojs/mdx'import react from '@astrojs/react'+import sitemap from '@astrojs/sitemap'import tailwindcss from '@tailwindcss/vite'import { defineConfig } from 'astro/config'+import supabaseTheme from '../learn/lib/themes/supabase-2.json' with { type: 'json' }import { BASE_PATH } from './src/lib/constants.ts'import rehypeAdmonitions from './src/lib/mdx/rehype-admonitions.js'-import supabaseTheme from '../learn/lib/themes/supabase-2.json' with { type: 'json' }--import sitemap from '@astrojs/sitemap';// Absolute dir of lodash-es, for the SSR-only lodash alias below (same fix// apps/studio/vite.config.ts uses). `packages/ui`'s clipboard util does@@ -46,14 +44,17 @@ const ssrLodashEs = {export default defineConfig({site: 'https://supabase.com',base: BASE_PATH,- trailingSlash: 'ignore',- integrations: [react(), // rehype-admonitions is a custom rehype plugin and Astro's default pipeline is- // satteri, so .mdx gets its own unified processor. Plain .md stays on satteri.- mdx({- processor: unified({- rehypePlugins: [rehypeAdmonitions],+ trailingSlash: 'never',+ integrations: [+ react(), // rehype-admonitions is a custom rehype plugin and Astro's default pipeline is+ // satteri, so .mdx gets its own unified processor. Plain .md stays on satteri.+ mdx({+ processor: unified({+ rehypePlugins: [rehypeAdmonitions],+ }),}),- }), sitemap()],+ sitemap(),+ ],vite: {ssr: {noExternal: ['lodash'],diff --git a/apps/kb/vercel.json b/apps/kb/vercel.jsonindex e0c25d8f82a..ce9ef14fb96 100644--- a/apps/kb/vercel.json+++ b/apps/kb/vercel.json@@ -1,5 +1,6 @@{"buildCommand": "pnpm build",+ "trailingSlash": false,"redirects": [{ "source": "/", "destination": "/kb", "permanent": false },{