# Copyright Envoy AI Gateway Authors # SPDX-License-Identifier: Apache-2.0 # The full text of the Apache license is available in the LICENSE file at # the root of the repo. [build] base = "site/" publish = "build/" command = "npm run build" [context.deploy-preview] base = "site/" publish = "build/" command = "npm run build" [[headers]] for = "/*" [headers.values] X-Content-Type-Options = "nosniff" Referrer-Policy = "strict-origin-when-cross-origin" Permissions-Policy = "camera=(), microphone=(), geolocation=()" Strict-Transport-Security = "max-age=31536000; includeSubDomains" # Redirect the whole aigateway.envoyproxy.io domain to theagentrouter.ai. # Matching on the full host means deploy previews (*.netlify.app) are unaffected. # force = true is required because Docusaurus publishes real files at these paths, # and Netlify would otherwise serve them instead of applying the redirect. [[redirects]] from = "https://aigateway.envoyproxy.io/*" to = "https://theagentrouter.ai/:splat" status = 301 force = true # Old docs URLs of the form /docs/latest/ → current docs. [[redirects]] from = "/docs/latest/*" to = "/docs/:splat" status = 301 # Self-hosted brand fonts and hashed build assets are immutable. [[headers]] for = "/fonts/*" [headers.values] Cache-Control = "public, max-age=31536000, immutable" Access-Control-Allow-Origin = "*" [[headers]] for = "/assets/*" [headers.values] Cache-Control = "public, max-age=31536000, immutable"