mirror of
https://github.com/blazblue547-afk/neonex.git
synced 2026-12-02 14:54:17 -05:00
25 lines
547 B
TOML
25 lines
547 B
TOML
[build]
|
|||
|
|
# Static site — no build step needed
|
||
|
|
publish = "."
|
||
|
|
|
||
|
|
[functions]
|
||
|
|
directory = "netlify/functions"
|
||
|
|
|
||
|
|
# /search → serverless function (query params pass through automatically)
|
||
|
|
[[redirects]]
|
||
|
|
from = "/search"
|
||
|
|
to = "/.netlify/functions/search"
|
||
|
|
status = 200
|
||
|
|
|
||
|
|
# SPA fallback — serve index.html for everything else
|
||
|
|
[[redirects]]
|
||
|
|
from = "/*"
|
||
|
|
to = "/index.html"
|
||
|
|
status = 200
|
||
|
|
|
||
|
|
# Optional: custom headers for security
|
||
|
|
[[headers]]
|
||
|
|
for = "/*"
|
||
|
|
[headers.values]
|
||
|
|
X-Frame-Options = "DENY"
|
||
|
|
X-Content-Type-Options = "nosniff"
|