Skip to content

Allow customized Gaufre #1038

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions env.d/development/common.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -19,10 +20,12 @@ export const LaGaufre = () => {
return null;
}

const src = GAUFREJS_URL || "https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js"

return (
<>
<Script
src="https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js"
src={src}
strategy="lazyOnload"
id="lasuite-gaufre-script"
/>
Expand Down
1 change: 1 addition & 0 deletions src/frontend/apps/impress/src/features/header/conf.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export const HEADER_HEIGHT = 52;
export const GAUFREJS_URL = process.env["GAUFREJS_URL"]