Redirecting to another Netlify site's functions results in 502 in production


Site 1 :
Site 1 repo: GitHub - UlysC/ntl_repro1

Site 2 :
Site 2 repo: GitHub - UlysC/ntl_repro2

I’m trying to redirect /two/ prefixed urls from site 1 to site2’s functions like so :

Site 1 netlify.toml :

  from = "/two/*"
  to = ""
  status = 200
  force = true returns a 502 returns 200 as expected

Is this not supported or am I doing something wrong ?

info: It’s worth noting that the redirect works when using ntl dev
Also, redirecting to any other file contained in Site2 that is NOT a function works.

hi there, before we dig in, did you see this brand new guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.