fix: use correct excludedPath syntax for Netlify edge functions

This commit is contained in:
Wayne Sutton
2025-12-22 02:04:56 -08:00
parent 1798be1047
commit d47062bb32

View File

@@ -44,11 +44,11 @@
path = "/api/geo"
function = "geo"
# Open Graph bot detection (excludes static files and API routes)
# Open Graph bot detection (excludes raw markdown directory)
[[edge_functions]]
path = "/*"
function = "botMeta"
excluded_paths = ["/raw/*", "/api/*", "/**/*.md", "/**/*.xml", "/**/*.txt", "/**/*.yaml", "/**/*.json"]
excludedPath = "/raw/*"
# Security and SEO headers
[[headers]]