I have a project where the front end is a single page application hosted on a CDN and the backend is hosted on Heroku. They use different domain names.
The issue is with the Add-On descriptor: I can describe a single baseUrl that gets used for all of the relative URLs in the rest of the file. However, I’d like to route the /installed lifecycle notification to the backend, and all of the module urls to the SPA on the CDN.
To illustrate:
{
"modules": {
"dialogs": [
{
"url": "/SOME-FRONT-END-URL-ON-CDN",
"options": {
"size": "fullscreen",
"header": {
"value": "Example Dialog"
}
},
"key": "some-dialog-key"
}
]
},
"lifecycle": {
"installed": "/installed-URL-ON-BACKEND",
},
"baseUrl": "http://www.URL-FOR-CDN.com"
}
Anyone run into this issue before?