Load custom component code from external source

I would like to use VS Code to edit and create my custom component. In other systems I have used a simple script to import the JS code into a custom component.

`

<script src="https://myfileserver.com/app.js"> </script>

`

I can edit app.js using VS CODE instead of cut and paste in the custom component iFrame provided by Retool.

Simply put. I would edit on my web server, and allow retool to load the app.js code using tag.

At the moment I am getting a CORS error, despite the .htaccess file has a wildcard for access.

is this possible?

FWIW - i got this to work. I think I had an incorrect path pointing to my script.

1 Like