development.md
April 24, 2020 ยท View on GitHub
githubbox
The site uses Cloudflare Workers to redirect visitors to CodeSandbox.
See redirect.md for the redirect setup.
Editing the worker
To edit the worker, open src/index.js.
The src directory contains the Cloudflare worker.
Building and publishing a new version
You need to install wrangler globally.
Publishing to development
yarn pub
Then check https://githubbox.dferber.workers.dev/
Publishing to production
yarn pub:prod
Then check https://githubbox.com
Test URLs
All these forms of URLs are supported.
- main githubbox.com/zeit/ms
- branch githubbox.com/zeit/ms/tree/master
- tree githubbox.com/zeit/ms/tree/2.1.1
- commit githubbox.com/zeit/ms/tree/7920885eb232fbe7a5efdab956d3e7c507c92ddf
- branch with file githubbox.com/zeit/ms/blob/master/package.json
- tree with file githubbox.com/zeit/ms/blob/2.0.0/index.js
- commit with file githubbox.com/zeit/ms/blob/adf1eb282d29fe3c405d205a3854177b86a97c1f/index.js