diff --git a/next.config.js b/next.config.js index e283882..1b5ba4f 100644 --- a/next.config.js +++ b/next.config.js @@ -77,6 +77,8 @@ const nextConfig = { cpus: 1, }, images: { + formats: ['image/avif', 'image/webp'], + minimumCacheTTL: 3600, remotePatterns: [ ...[NEXT_PUBLIC_SERVER_URL].map((item) => { const url = new URL(item) @@ -85,6 +87,8 @@ const nextConfig = { protocol: url.protocol.replace(':', ''), } }), + { hostname: 'img.youtube.com', protocol: 'https' }, + { hostname: 'i.vimeocdn.com', protocol: 'https' }, ], }, webpack: (webpackConfig) => { diff --git a/src/blocks/FDHeroBlock/Component.tsx b/src/blocks/FDHeroBlock/Component.tsx index b65e9ca..ca540f7 100644 --- a/src/blocks/FDHeroBlock/Component.tsx +++ b/src/blocks/FDHeroBlock/Component.tsx @@ -72,7 +72,7 @@ export const FDHeroBlockComponent: React.FC = ({ priority className="absolute inset-0 w-full h-full object-cover" sizes="100vw" - fallbackAlt="" + fallbackAlt={heading || ''} />