mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
chore: prepare v1.0.0 for Netlify deployment
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.
This commit is contained in:
68
netlify.toml
Normal file
68
netlify.toml
Normal file
@@ -0,0 +1,68 @@
|
||||
[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"
|
||||
|
||||
Reference in New Issue
Block a user