@@ -58,6 +58,13 @@ export type CreateNextDsfrIntegrationApiParams = {
5858 * @default "react-dsfr"
5959 */
6060 trustedTypesPolicyName ?: string ;
61+ /**
62+ * Disable Marianne favicon import.
63+ * Enable this option if you want to use your own favicon.
64+ *
65+ * @default false
66+ */
67+ doDisableFavicon ?: boolean ;
6168} ;
6269
6370function readIsDarkInCookie ( cookie : string ) {
@@ -106,7 +113,8 @@ export function createNextDsfrIntegrationApi(
106113 preloadFonts = [ ] ,
107114 doPersistDarkModePreferenceWithCookie = false ,
108115 useLang,
109- trustedTypesPolicyName = "react-dsfr"
116+ trustedTypesPolicyName = "react-dsfr" ,
117+ doDisableFavicon = false
110118 } = params ;
111119
112120 let isAfterFirstEffect = false ;
@@ -176,13 +184,21 @@ export function createNextDsfrIntegrationApi(
176184 crossOrigin = "anonymous"
177185 />
178186 ) ) }
179- < link rel = "apple-touch-icon" href = { getAssetUrl ( AppleTouchIcon ) } />
180- < link rel = "icon" href = { getAssetUrl ( FaviconSvg ) } type = "image/svg+xml" />
181- < link
182- rel = "shortcut icon"
183- href = { getAssetUrl ( FaviconIco ) }
184- type = "image/x-icon"
185- />
187+ { ! doDisableFavicon && (
188+ < >
189+ < link rel = "apple-touch-icon" href = { getAssetUrl ( AppleTouchIcon ) } />
190+ < link
191+ rel = "icon"
192+ href = { getAssetUrl ( FaviconSvg ) }
193+ type = "image/svg+xml"
194+ />
195+ < link
196+ rel = "shortcut icon"
197+ href = { getAssetUrl ( FaviconIco ) }
198+ type = "image/x-icon"
199+ />
200+ </ >
201+ ) }
186202 { ! isBrowser && ( //NOTE: On browser we handle this manually
187203 < >
188204 < style id = { rootColorSchemeStyleTagId } > { `:root { color-scheme: ${
0 commit comments