-
Notifications
You must be signed in to change notification settings - Fork 472
✨(helm) redirecting system #1697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
🚀 Preview will be available at https://1697-docs.ppr-docs.beta.numerique.gouv.fr/ You can use the existing account with these credentials:
You can also create a new account if you want to. Once this Pull Request is merged, the preview will be destroyed.
When clicking on "Se Connecter", the url is the production one (https://docs.numerique.gouv.fr/api/v1.0/authenticate/). If you want to go inside the preview app, here is the url: https://1697-docs.ppr-docs.beta.numerique.gouv.fr/api/v1.0/authenticate/ |
|
Size Change: -15 B (0%) Total Size: 4.14 MB
|
a458cf8 to
77adea5
Compare
59917b3 to
ab1b179
Compare
469e116 to
dbba4a3
Compare
To be intercepted by ingress redirects, we need to redirect using window.location instead of using Next.js router. The Next.js router does not trigger a full page reload, so the ingress redirect logic is not executed.
dbba4a3 to
3b0cfce
Compare
Create a new Helm template for ingress redirects and update the values.yaml file accordingly. We will be able to manage ingress redirects through Helm charts easily.
3b0cfce to
54dd83c
Compare
|
🚀 Preview will be available at https://1697-docs.ppr-docs.beta.numerique.gouv.fr/ You can use the existing account with these credentials:
You can also create a new account if you want to. Once this Pull Request is merged, the preview will be destroyed. |

Purpose
We want to replace the
LaSuiteDocs landing page (https://docs.numerique.gouv.fr/home/) by the new one (https://lasuite.numerique.gouv.fr/produits/docs).We will redirect to it if the app targets
/home/page.To target only our instance it will be configurable thanks to the helm charts.
How to use
In your
env.dfolder set theingressRedirectsas you want, it can be a array of redirections, redirecting with a special code (default code 301):example:
./src/helm/env.d/feature/values.impress.yaml.gotmpl