Relative URLs and Static sites don't work in live preview
Summary
When trying to load a static (HTML/CSS/JS) site inside of Live Preview in the Web IDE, relative URLs to assets aren't followed and the preview displays as broken (see screenshots below). The same project loaded directly on Codesandbox works correctly.
Steps to reproduce
Create a project on GitLab and correctly setup a package.json entrypoint for the index.html file. Once loaded the index.html file will load, but no assets referenced via relative URLs work.
Example Project
- Project on GitLab.com: https://gitlab.com/phikai/startbootstrap-one-page-wonder
- Project push mirrored to GitHub: https://github.com/phikai/startbootstrap-one-page-wonder
- Project on Codesandbox: https://codesandbox.io/s/github/phikai/startbootstrap-one-page-wonder
What is the current bug behavior?
No assets are loaded via relative URLs.
What is the expected correct behavior?
Assets should be loaded via relative URLs
Relevant logs and/or screenshots
Possible fixes
It's possible that the version differences of our sandpack scripts create this issue.
Edited by Kai Armstrong