youtube image
From YouTube: GitLab 12.9 Live Preview Improvements and possible Future Hosting Paths

Description

In GitLab 12.9 GitLab.com started hosting the required assets for Live Preview in the Web IDE - https://about.gitlab.com/releases/2020/03/22/gitlab-12-9-released/#gitlab-hosted-codesandbox-for-client-side-live-preview


This video shows how by using a pages project and modifying a file in GitLab we can host the required assets with GitLab Pages.


Pages Project: https://gitlab.com/phikai/pages-sandpack
File to Change: https://gitlab.com/gitlab-org/gitlab/blob/master/app/models/application_setting_implementation.rb#L357


In a future iteration we'll make the URL configurable in the admin settings: https://gitlab.com/gitlab-org/gitlab/-/issues/208161


If you want to get in touch about this change and what you might need for your organization to benefit, you can find my email https://gitlab.com/phikai - you can also comment on the projects or open issues if you try this out and have any issues.