allen-cell-animated / website-3d-cell-viewer

Other
5 stars 4 forks source link

Use GitHub pages for PR preview links #227

Open ShrimpCryptid opened 5 months ago

ShrimpCryptid commented 5 months ago

Use Case

Now that hash routing is fixed (see #226) it could be a great opportunity to add PR preview links, the way we do it in the colorizer repo!

Solution

Automatically deploy PR preview builds, using an action like this one: https://github.com/allen-cell-animated/nucmorph-colorizer/blob/main/.github/workflows/pr-preview.yml

Note that the 404 redirect expects to only handle a static number of subpaths currently. We can update the 404.html page to use different logic when handling traffic going to the root page vs. the PR previews.

Alternatives

Please describe any alternatives you've considered, even if you've dismissed them