diff --git a/env.d/development/common.dist b/env.d/development/common.dist index bf1b45530..597133e66 100644 --- a/env.d/development/common.dist +++ b/env.d/development/common.dist @@ -31,6 +31,9 @@ AWS_S3_ACCESS_KEY_ID=impress AWS_S3_SECRET_ACCESS_KEY=password MEDIA_BASE_URL=http://localhost:8083 +# Gaufre +GAUFREJS_URL=https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js + # OIDC OIDC_OP_JWKS_ENDPOINT=http://nginx:8083/realms/impress/protocol/openid-connect/certs OIDC_OP_AUTHORIZATION_ENDPOINT=http://localhost:8083/realms/impress/protocol/openid-connect/auth diff --git a/src/frontend/apps/impress/src/features/header/components/LaGaufre.tsx b/src/frontend/apps/impress/src/features/header/components/LaGaufre.tsx index 39c4f1ea1..771e2c376 100644 --- a/src/frontend/apps/impress/src/features/header/components/LaGaufre.tsx +++ b/src/frontend/apps/impress/src/features/header/components/LaGaufre.tsx @@ -3,6 +3,7 @@ import '@gouvfr-lasuite/integration/dist/css/gaufre.css'; import Script from 'next/script'; import React from 'react'; import { createGlobalStyle } from 'styled-components'; +import { GAUFREJS_URL } from '../conf' import { useCunninghamTheme } from '@/cunningham'; @@ -19,10 +20,12 @@ export const LaGaufre = () => { return null; } + const src = GAUFREJS_URL || "https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js" + return ( <>