From a91f863295a7bb6687490028d32a9ea3ac6dac5a Mon Sep 17 00:00:00 2001 From: Levente Orban Date: Wed, 27 Aug 2025 08:47:02 +0200 Subject: [PATCH] feat: add netlify adapter --- netlify.toml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/netlify.toml b/netlify.toml index 49f6bee..5cd1a24 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,33 +4,3 @@ command = "npm run build" # Publish directory (where the built files are located) publish = "build" - -[build.environment] -# Node.js version for the build environment -NODE_VERSION = "18" - -# Redirects for SvelteKit routing -[[redirects]] -# Handle client-side routing for SPA -from = "/*" -to = "/index.html" -status = 200 - -# Headers for better performance and security -[[headers]] -for = "/*" -[headers.values] -# Cache static assets -Cache-Control = "public, max-age=31536000, immutable" - -[[headers]] -for = "/*.html" -[headers.values] -# Don't cache HTML files -Cache-Control = "public, max-age=0, must-revalidate" - -[[headers]] -for = "/assets/*" -[headers.values] -# Cache assets for a long time -Cache-Control = "public, max-age=31536000, immutable"