@@ -18,9 +18,9 @@ import marianneBoldWoff2Url from "./dsfr/fonts/Marianne-Bold.woff2";
1818import marianneBoldItalicWoff2Url from "./dsfr/fonts/Marianne-Bold_Italic.woff2" ;
1919import spectralRegularWoff2Url from "./dsfr/fonts/Spectral-Regular.woff2" ;
2020import spectralExtraBoldWoff2Url from "./dsfr/fonts/Spectral-ExtraBold.woff2" ;
21- import appleTouchIcon from "./dsfr/favicon/apple-touch-icon.png" ;
22- import faviconSvg from "./dsfr/favicon/favicon.svg" ;
23- import faviconIco from "./dsfr/favicon/favicon.ico" ;
21+ import AppleTouchIcon from "./dsfr/favicon/apple-touch-icon.png" ;
22+ import FaviconSvg from "./dsfr/favicon/favicon.svg" ;
23+ import FaviconIco from "./dsfr/favicon/favicon.ico" ;
2424import faviconWebmanifestUrl from "./dsfr/favicon/manifest.webmanifest" ;
2525import {
2626 data_fr_scheme ,
@@ -30,6 +30,7 @@ import {
3030} from "./lib/darkMode" ;
3131import type { ColorScheme } from "./lib/darkMode" ;
3232import DefaultDocument from "next/document" ;
33+ import { getAssetUrl } from "./lib/tools/getAssetUrl" ;
3334
3435const fontUrlByFileBasename = {
3536 "Marianne-Light" : marianneLightWoff2Url ,
@@ -157,9 +158,13 @@ export function createNextDsfrIntegrationApi(params: Params): NextDsfrIntegratio
157158 crossOrigin = "anonymous"
158159 />
159160 ) ) }
160- < link rel = "apple-touch-icon" href = { appleTouchIcon . src } />
161- < link rel = "icon" href = { faviconSvg . src } type = "image/svg+xml" />
162- < link rel = "shortcut icon" href = { faviconIco . src } type = "image/x-icon" />
161+ < link rel = "apple-touch-icon" href = { getAssetUrl ( AppleTouchIcon ) } />
162+ < link rel = "icon" href = { getAssetUrl ( FaviconSvg ) } type = "image/svg+xml" />
163+ < link
164+ rel = "shortcut icon"
165+ href = { getAssetUrl ( FaviconIco ) }
166+ type = "image/x-icon"
167+ />
163168 < link
164169 rel = "manifest"
165170 href = { faviconWebmanifestUrl }
0 commit comments