Make Codesandbox URL configurable
Codesandbox can be self hosted quite easily by hosting the static sandpack script on a custom domain. It interacts directly with the https://unpkg.com/ CDN, removing the previous requirement of also operating a packager.
GitLab currently defaults to the Codesandbox.io domain – we should make it possible to use a custom domain.
- Add a textbox to provide a custom Codesandbox URL
- Add documentation for what is needed to configure your own Codesandbox instance
Important security note
when making it configurable we would need it to enforce its format with a regular expression
One reason for this is that the URL is used in the CSP headers.
We'll need to provide documentation instructions for how to self-host the required packages for use with GitLab. This should include the required commands, as well as hostname restrictions and other items of importance.
Above and beyond would be some kind of CI script/project example.