mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-11 20:08:57 +00:00
Update version to 1.0.0 across package.json and changelog. Configure netlify.toml with Convex deployment URL (agreeable-trout-200.convex.site). Verify TypeScript type-safety for src and convex directories. Confirm Netlify build passes with SPA 404 fallback configured. Update TASK.md with deployment steps and files.md with complete file structure.
69 lines
1.4 KiB
TOML
69 lines
1.4 KiB
TOML
[build]
|
|
command = "npm run deploy"
|
|
publish = "dist"
|
|
|
|
[build.environment]
|
|
NODE_VERSION = "20"
|
|
|
|
# Convex HTTP endpoints
|
|
# RSS feeds
|
|
[[redirects]]
|
|
from = "/rss.xml"
|
|
to = "https://agreeable-trout-200.convex.site/rss.xml"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/rss-full.xml"
|
|
to = "https://agreeable-trout-200.convex.site/rss-full.xml"
|
|
status = 200
|
|
force = true
|
|
|
|
# Sitemap for search engines
|
|
[[redirects]]
|
|
from = "/sitemap.xml"
|
|
to = "https://agreeable-trout-200.convex.site/sitemap.xml"
|
|
status = 200
|
|
force = true
|
|
|
|
# API endpoints for LLMs and agents
|
|
[[redirects]]
|
|
from = "/api/posts"
|
|
to = "https://agreeable-trout-200.convex.site/api/posts"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/api/post"
|
|
to = "https://agreeable-trout-200.convex.site/api/post"
|
|
status = 200
|
|
force = true
|
|
|
|
# Open Graph metadata endpoint
|
|
[[redirects]]
|
|
from = "/meta/post"
|
|
to = "https://agreeable-trout-200.convex.site/meta/post"
|
|
status = 200
|
|
force = true
|
|
|
|
# SPA fallback for client-side routing (must be last)
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "/index.html"
|
|
status = 200
|
|
|
|
# Edge function for Open Graph bot detection
|
|
[[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"
|
|
|