Redirects and response headers in percher.toml
Declare redirects and custom response headers in your toml, applied before a request reaches your app.
You can now declare redirects and response headers in percher.toml. They're served at the edge, before a request ever reaches your container:
[[redirects]]
from = "/old-path"
to = "/new-path"
status = 308
[headers."/*"]
X-Custom-Header = "value"You get up to 32 redirects — an exact path or a /* prefix — and per-path response headers. Coming from Vercel or Netlify? bunx percher import converts a vercel.json or a _redirects / _headers file into the equivalent toml for you.