This repository is a standalone version of the Sandpack Bundler, used on frontend.fyi, deployed on it's own domain. I've been inspired by Josh Comeau to self host this, to be less dependent on CodeSandbox, and to improve the performance. A big benefit is also being able to host my assets on the bunder, instead of loading them from frontend.fyi (which I did until using this bundler).
In order to self-host, we have to follow a procedure to generate the bundle from the codesandbox-client codebase.
Link to steps: https://sandpack.codesandbox.io/docs/advanced-usage/client#hosting-the-bundler
Here are the steps to perform:
cdinto../codesandbox-client. Do agit pull origin masterto make sure I have the latest files- Switch to Node v16 with NVM (or whichever version is requested by
enginesin package.json) - Reinstall dependencies with
yarn install. yarn build:depsto build some of the packages lerna needs for internal links.yarn build:sandpackto create the built files