Host static js file on the domain the app is deployed on

Hi,
I have a js file I need to host on my domain. The js file is used to deploy the app as an iframe on other websites. How can I accomplish this? When I add the JS file to the project files location it gets an aws link, but I need it to be on the same domain as my app. I tried going to mydomain.com/files/jsfile and mydomain.com/public/files/jsfile but it returns a 404

Thanks!

Great question and great seeing you at the Office Hours today!

Currently I don’t not possible at the moment but it is on the road map for the future. Joyce is confirming with tech team.

If something changes we’ll let you know.

Thank you so much! :smiley:

Hi @wealthsyndy :wave:

Apologies for the late reply on this. Following our discussion during Office Hours, I was able to confirm this is NOT possible at the moment.

We discussed adding it manually for you on our side but it would have to be done every time you publish so not really a viable solution :confused:

I’m discussing further with the tech team to find out if it’s something that could be made possible in the coming months.

Thanks for the follow up! I was able to test a solution (at least in chrome) by hosting a file on S3 and it seems to be loading on multiple domains, so for now I am good.
Thanks @Joyce

1 Like

Awesome! Glad you found a suitable solution for now :slight_smile: