-
Notifications
You must be signed in to change notification settings - Fork 198
Description
Is your feature request related to a problem? Please describe
When working on the website (e.g. docs or homepage), it’s currently hard to preview changes made in a PR.
The build is done via GitHub Actions, but no preview is exposed.
To test it, you have to download the artifact and run a local server at /maxGraph.
That’s... not very friendly 😅
Describe the solution you'd like
Deploy a preview version of the website for every Pull Request.
It should be hosted on a public URL to make review easier.
Remember that the website is a static site only, so simple solutions should be available for such use cases.
Bonus: it should also work when the PR comes from a fork (i.e. external contributors).
Describe alternatives you've considered
Here are some possible solutions:
-
Vercel
- Docs: https://vercel.com/docs/git/vercel-for-github
- Pricing: https://vercel.com/pricing
- ✅ Seems to support PRs from forks
-
Netlify: https://www.netlify.com/
-
Cloudflare Pages: https://pages.cloudflare.com/
- 🆓 Free tier: 500 builds/month
-
DigitalOcean App Platform: https://www.digitalocean.com/products/app-platform
-
Surge (free & simple)
- Site: https://surge.sh/
- GitHub Action: https://github.com/afc163/surge-preview
- ✅ I've already used it a lot and it works well, including for forks (requires a small workflow trick)
More comparison: https://www.latterly.org/vercel-competitors/
Additional context
The current website assumes it’s served under /maxGraph. This is required by docusaurus to specify the context.
Any preview solution should keep this behavior, or we should adapt the config to support both root and subpath hosting.