The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['ui', 'common', 'shared-data', 'icons', 'tsconfig'],
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
turbopack: {
rules: {
'*.md': {
loaders: ['raw-loader'],
as: '*.js',
},
},
},
outputFileTracingIncludes: {
'/api/docs-md/**/*': ['./public/markdown/docs/**/*'],
'/api/index-md/**/*': ['./public/markdown/index.md'],
},
async redirects() {
return [
...(process.env.NEXT_PUBLIC_BASE_PATH?.length
? [
{
source: '/',
destination: process.env.NEXT_PUBLIC_BASE_PATH,
basePath: false,
permanent: false,
},
]
: []),
// Add a redirect to make the custom block for tanstack-db
{
source: '/r/tanstack-db-nextjs.json',
destination: '/api/registry/tanstack-db',
permanent: true,
},
// The MCP server block was renamed from mcp-server to mcp
{
source: '/r/mcp-server.json',
destination: '/r/mcp.json',
permanent: true,
},
{
source: '/docs/headless/mcp-server',
destination: '/docs/headless/mcp',
permanent: true,
},
]
},
}
export default nextConfig