blogs/netlify.toml

91 lines
1.8 KiB
TOML

# Main site configuration
[build]
publish = "dist"
command = "npm run build"
# Rewrite rules for subdomain routing (preserves subdomain in location bar)
# Note: These require domain aliases to be configured in Netlify dashboard
[[redirects]]
from = "https://art.neeldhara.blog/*"
to = "/art/:splat"
status = 200
force = true
[[redirects]]
from = "https://bfs.neeldhara.blog/*"
to = "/bfs/:splat"
status = 200
force = true
[[redirects]]
from = "https://dfs.neeldhara.blog/*"
to = "/dfs/:splat"
status = 200
force = true
[[redirects]]
from = "https://problems.neeldhara.blog/*"
to = "/problems/:splat"
status = 200
force = true
[[redirects]]
from = "https://puzzles.neeldhara.blog/*"
to = "/puzzles/:splat"
status = 200
force = true
[[redirects]]
from = "https://reviews.neeldhara.blog/*"
to = "/reviews/:splat"
status = 200
force = true
[[redirects]]
from = "https://reflections.neeldhara.blog/*"
to = "/reflections/:splat"
status = 200
force = true
[[redirects]]
from = "https://vibes.neeldhara.blog/*"
to = "/vibes/:splat"
status = 200
force = true
[[redirects]]
from = "https://workflows.neeldhara.blog/*"
to = "/workflows/:splat"
status = 200
force = true
[[redirects]]
from = "https://magic.neeldhara.blog/*"
to = "/magic/:splat"
status = 200
force = true
[[redirects]]
from = "https://contests.neeldhara.blog/*"
to = "/contests/:splat"
status = 200
force = true
[[redirects]]
from = "https://poetry.neeldhara.blog/*"
to = "/poetry/:splat"
status = 200
force = true
# Main blog redirect
[[redirects]]
from = "https://blog.neeldhara.blog/*"
to = "/blog/:splat"
status = 200
force = true
# Fallback for main domain
[[redirects]]
from = "/*"
to = "/index.html"
status = 200