You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running netlify dev with the -t flag to enable some of the recent changes to the redirection engine locally (e.g. automatic passthrough of query parameters), if there is a redirection rule that matches the /.netlify/functions path it causes calls to Netlify functions to fail. This is different from when running netlify devwithout the -t flag, where the /.netlify/functions is never redirected even if there are redirection rules that technically match it. Since it's not possible to override this behavior with a redirection rule that matches /.netlify/* paths, there's no way to make functions work together with broadly applying redirection rules.
When running netlify dev -t, either calls to /.netlify/functions do not have redirection rules applied to them, or it is made possible to override the redirection with a suppresive rule such as
[[redirects]]
from = "/.netlify/*"to = "/.netlify/:splat"status = 200
placed before the more general rule.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
netlify dev
with the-t
flag to enable some of the recent changes to the redirection engine locally (e.g. automatic passthrough of query parameters), if there is a redirection rule that matches the/.netlify/functions
path it causes calls to Netlify functions to fail. This is different from when runningnetlify dev
without the-t
flag, where the/.netlify/functions
is never redirected even if there are redirection rules that technically match it. Since it's not possible to override this behavior with a redirection rule that matches/.netlify/*
paths, there's no way to make functions work together with broadly applying redirection rules.To Reproduce
yarn install
yarn netlify dev -t
yarn netlify dev
(without the-t
flag)Configuration
netlify.toml
:Output of
envinfo
:Expected behavior
When running
netlify dev -t
, either calls to/.netlify/functions
do not have redirection rules applied to them, or it is made possible to override the redirection with a suppresive rule such asplaced before the more general rule.
The text was updated successfully, but these errors were encountered: