We’re currently building a Phoenix app that has a forward to another Phoenix app’s router if no route matches in the parent app. Everything seems to work correctly except for static assets. Since the static plug is defined in the endpoint module, it won’t get called if we forward directly to the router. However, forwarding to the endpoint is not recommended per the Phoenix docs.
I could configure the static plug in the parent app and have it point to the child, but I would prefer not to. Would it make sense to create another "endpoint’ in the child app that contains only the static plug and router and then forward to that? Or is there a better approach?
Thanks in advance!