[build] command = "npm ci --include=dev && npx convex deploy --cmd 'npm run build'" publish = "dist" [build.environment] NODE_VERSION = "20" # SPA fallback for client-side routing (must be last) [[redirects]] from = "/*" to = "/index.html" status = 200 # Edge functions for dynamic Convex HTTP proxying # RSS feeds [[edge_functions]] path = "/rss.xml" function = "rss" [[edge_functions]] path = "/rss-full.xml" function = "rss" # Sitemap [[edge_functions]] path = "/sitemap.xml" function = "sitemap" # API endpoints [[edge_functions]] path = "/api/posts" function = "api" [[edge_functions]] path = "/api/post" function = "api" [[edge_functions]] path = "/api/export" function = "api" # Open Graph bot detection (catches all other routes) [[edge_functions]] path = "/*" function = "botMeta" [context.production.environment] NODE_ENV = "production" [context.deploy-preview.environment] NODE_ENV = "development" [context.branch-deploy.environment] NODE_ENV = "development"