chore: add Netlify deployment configuration
- netlify.toml: Configure cargo build --release and run compiler. Publish directory set to public/. - static/_headers: Add security headers (X-Frame-Options, CSP, etc.) and cache control for static assets (1 year for css/images, 1 hour for HTML, 1 hour for feed).
This commit is contained in:
13
netlify.toml
Normal file
13
netlify.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Netlify build configuration for nrd.sh
|
||||
|
||||
[build]
|
||||
command = "cargo build --release && ./target/release/nrd-sh"
|
||||
publish = "public"
|
||||
|
||||
[build.environment]
|
||||
RUST_VERSION = "1.84"
|
||||
|
||||
# Redirect clean URLs (optional, for server-side routing)
|
||||
# Not needed since we use .html extensions
|
||||
|
||||
# Headers are configured in static/_headers
|
||||
Reference in New Issue
Block a user