I have a GD.UI app deployed to the free hosting site netlify.com
Netlify connects to a GitHub repository and builds the app on a cloud server, allowing testing outside of local environments.
The app deployed to Netlify works, I see the standard GD.UI Welcome page. I can also edit content on the Home page, as expected. However, when I add a <headline> component, the hosted app displays the Can’t find this insight error. The app displays the Headline as expected in my local environment.
Is there another cloud-based app hosting provider that integrates seamlessly with GD.UI? Amazon Amplify?
Best answer by Jan RehanekView original
It seems that the app hosted on netlify is looking for assets that are hosted on our custom url fleet.aviationweek.com
However, netlify is prepending the url with its own URL, netlify.app
Example, instead of the netlify-hosted app looking for fleet.aviationweek.com/gdc/… it is looking in awdata.netlify.app/gdc/
In the Chrome Developer Tools Console, it is showing 404 errors for:
and several others.
How do I tell my GD.UI app to always use my URL fleet.aviationweek.com to find assets instead of using netlify.app ?
This seems like a problem that is very specific to Netlify and its routing ( https://docs.netlify.com/routing/overview/) and not necessarily connected to GD.UI and its behaviour. So, I had a look for a solution on their side.
The key seems to be having a file named _redirects inside your public folder, as described in https://docs.netlify.com/routing/redirects/ and making sure that netlify.app redirects to a custom domain that you specify.
I also had a look at Netlify's community, and this issue seems similar to yours: https://answers.netlify.com/t/how-do-i-301-redirect-from-my-netlify-app-domain-to-my-custom-domain/48490
There, the solution was to set-up a custom rule in _redirects like this:
Most likely, you could adjust this to cover only links which you want to be directed towards fleet.aviationweek.com.
See if the documentation can show you a solution for your use-case. I’d also encourage you to ask on their forums in case that you can’t find what you are looking for.
In case you really do think that there’s some sort of problem with GD.UI, please let us know, and we can take a second look.