Context:
I’ve been using Netlify and can setup the redirects using _redirect on the root site like this: /app/* http://example-redwood-app.com/:splat 200.
The redirect works but the RedwoodJS app doesn’t work as expected because it attempts to load the resources (JS, CSS, images, etc.) from http://example.com/ instead of http://example-redwood-app.com/.
Question:
Can a public URL be set in RedwwodJS so that it uses absolute imports instead of relative imports?
This would be totally possible with something like NGINX. you could combine them all into one application and use something like react-snap to pre-render the marketing pages.
Do you know if it would be possible to do this just using Netlify and config?
I like the developer experience of Netlify and don’t want to lose that. I’m interested in having some structure where multiple services can be deployed individually with coarse-grained routing to them.
@Darth-Knoppix Hello, Seth, in addition to the approach proposed by @Chris, there is the alternative based on using the subdomains as “different paths” on your domain. So your setup would look like