I am trying to figure out how to proxy rewrite netlify functions from a domain to an other.
Lets say i have a public domain called https://example.com
At that domain theres som subpaths like /site1, /site2, /site3 (https://example.com/site1) that all have their own sites / applications.
The current rewrite settings on the top domain is:
[[redirects]]
from = “/site1/*”
to = “https://site1.example.com/:splat”
status = 200
force = true
Everything works as expected and the “shadow” domain can be accessed from the top domain.
But when i request a netlify function from the top domain i m not getting any result.
I get a 200 respons but the body is empty.
The reason i have this setup is to have a top domain and run multiple sub applications/languages beneath it, and i dont know why the rewrite proxy for the netlify functions doesnt work.
On the main site there is a redirect config like this in the netlify.toml:
[[redirects]]
from = “/test/*”
to = “https://test.main.raket.nu/:splat”
status = 200
force = true
Hey @raketwebbyra,
Looks like you may be running into the same issue as over here → Proxying from one app to another - #8 by luke Would you mind trying Luke’s workaround and letting us know how it goes? If that turns out to be the problem, I’ll add this thread to our internal tracking issue for the bug.