Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Great Switcheroo Phase Two. This PR refactors the redirects files and inverts www.zooniverse.org's default
location /
behavior from routing to PFE/blob storage to routing to FEM at the fe-root app. The PFE redirect files now contain the desired exceptions to this new default behavior.One giant exception is
/projects
, which uses a prefix matcher to point at PFE (with exception-exceptions made for/assets
and/_next
, which are always FEM). The list of "FEM project redirects" remains and is kept in its own file. This continues to be a list of explicitly FEM projects as the default remains PFE.An important note is that the behavior of https://frontend.preview.zooniverse.org has been left entirely alone. This will still display PFE at the home page and can be used as before. If this behavior should also change, let me know.frontend.preview behavior is the primary FEM testing domain, so it was updated to match production.
Merging this PR will deploy staging and allow for testing on static-staging.zooniverse.org via the staging proxy. Links may not work, but I'll be testing routes and ensuring that behavior works as intended. I also included an example "FEM project redirect" in the staging conf for testing purposes (
/projects/brooke/i-fancy-cats
). Deploying to production will be done in concert with FEM and PFE deploys next Tuesday and should probably be accompanied by a full CDN cache purge.