Solved

hosting a GD.UI app on netlify - can't find this insight


  • Participating Frequently
  • 7 replies

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?

thanks

icon

Best answer by Jan Rehanek 23 May 2022, 09:42

View original

2 replies

Userlevel 3

Hi Shambo,

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:

https://rubberring.netlify.app/* https://rubber-ring.co.uk/:splat 301!

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.

Good luck,
 

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:

https://awdata.netlify.app/gdc/app/projects/jqmklcy6gf6luie8ngzz6zg6euqdkwiu/executeAfm

https://awdata.netlify.app/gdc/account/profile/current

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 ?

thanks

 

Reply