BB-2328: Add new frontend redirects
This PR adds a simple redirection mechanism to direct users to the new frontend until we do the domain migration.
Testing instructions:
- Checkout this branch.
- Run Ocim.
- Go to http://localhost:5000/registration and check that the form is displaying as usual.
- Add these to your
.env
file:
USER_CONSOLE_FRONTEND_URL="https://app.console.opencraft.com"
NEW_USER_CONSOLE_REGISTRATION_ENABLED=True
- Open your browser inspetion tool.
- Restart Ocim, check that http://localhost:5000/registration redirects to the new frontend.
- Check that the redirect was a
302 Found
and not a permanent redirect.
Reviewer:
Notes: This is just a temporary change, until Ocim gets migrated to the new domain (manage.opencraft.com). It will be removed soon, so that's why I didn't add any tests.