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!