Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Dec 5, 2025

Purpose

We want to replace the LaSuite Docs 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.d folder set the ingressRedirects as 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

ingressRedirects:
  enabled: true
  defaultHost: {{ .Values.feature }}-docs.{{ .Values.domain }}
  rules:
    - name: home        
      from: /home
      to: https://lasuite.numerique.gouv.fr/produits/docs
    - name: visio        
      from: /visio
      to: https://lasuite.numerique.gouv.fr/produits/visio
    - name: error-404        
      from: /404
      to: https://lasuite.numerique.gouv.fr/404
      code: 404

@AntoLC AntoLC self-assigned this Dec 5, 2025
@AntoLC AntoLC added frontend feature add a new feature preview labels Dec 5, 2025
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

🚀 Preview will be available at https://1697-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.


image

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/

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Size Change: -15 B (0%)

Total Size: 4.14 MB

Filename Size Change
apps/impress/out/_next/static/b87d3e79/_buildManifest.js 0 B -904 B (removed) 🏆
apps/impress/out/_next/static/78fe8149/_buildManifest.js 904 B +904 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC added the FAST Issues that will improve the AARR (acquisition, activation, retention and recommendation) label Dec 5, 2025
@AntoLC AntoLC force-pushed the feat/new-home branch 2 times, most recently from a458cf8 to 77adea5 Compare December 9, 2025 16:38
@AntoLC AntoLC marked this pull request as draft December 9, 2025 17:13
@AntoLC AntoLC linked an issue Dec 10, 2025 that may be closed by this pull request
@AntoLC AntoLC force-pushed the feat/new-home branch 2 times, most recently from 469e116 to dbba4a3 Compare December 10, 2025 21:51
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.
@AntoLC AntoLC changed the title ♻️ Replace old Docs landing by the new one ✨(helm) redirecting system Dec 11, 2025
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.
@AntoLC AntoLC marked this pull request as ready for review December 11, 2025 09:11
@AntoLC AntoLC requested review from lunika and rouja December 11, 2025 09:21
@AntoLC AntoLC added the helm label Dec 11, 2025
@github-actions
Copy link

🚀 Preview will be available at https://1697-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FAST Issues that will improve the AARR (acquisition, activation, retention and recommendation) feature add a new feature frontend helm preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♻️ Replace old Docs landing by the new one

2 participants