GitLab hosted Codesandbox

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 use a GitLab domain (e.g. gitlab-sandbox.com) and enable the feature by default for self hosted instances.

Proposal

  • Serve the required javascript from the GitLab.com CDN (non-versioned domain) - https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6709
  • Configure GitLab to talk to the GitLab.com hosted version
  • Update documentation for enabling Client Side Evaluation

Not in Scope

  • Making the Codesandbox URL Configurable - #208161 (closed)
  • Defaulting the checkbox to enable the feature to on - #205365 (closed)

Documentation

The docs around enabling Client Side Evaluation should be updated to reflect the assets are served from a GitLab hosted domain, but be clear that it runs the latest version required for GitLab.com and may cause incompatibility with older versions of GitLab.

Links / references

https://docs.gitlab.com/ee/user/project/web_ide/index.html#enabling-client-side-evaluation

Edited Feb 26, 2020 by Kai Armstrong
Assignee Loading
Time tracking Loading