We have two Vaadin 14.1.x apps running on a virtual machine. They are Spring Boot applications, and we use Maven for
dependency management.
One app runs on 8080 and the other on 9090. Both are sitting behind an apache server which is proxying requests
(forward and reverse) to the backend. The problem we are encountering is that the static resources are located in the
absolute directory /frontend on each, so when a service worker attempt to get an icon (for instance), it will look
in /frontend/icons/icon.png. However, this is the same on both apps, so there is no way for Apache to know which
one to use.
Current structure is:
src/main/resources/META-INF/resources/frontend
/icons
/images
/styles
manifest.json
offline-page.html
sw.js
Ideally, I’d like to have /app1/frontend and /app2/frontend as the top levels, so that they can be correctly proxied, but
I’ve tried nearly every maven goal change, application-properties change, and directory layout change I can think of
without success, and there is not clear guidance in the docs of how to rename the frontend.
Any help would be greatly appreciated.
Matt