diff --git a/apps/site/next.config.mjs b/apps/site/next.config.mjs index e61cbba79e..f18342334e 100644 --- a/apps/site/next.config.mjs +++ b/apps/site/next.config.mjs @@ -20,6 +20,14 @@ const BLOG_ORIGIN_HOST = (() => { } })(); +const imageRemoteHostnames = [ + "cdn.sanity.io", + "prisma.io", + "www.prisma.io", + DOCS_ORIGIN_HOST, + BLOG_ORIGIN_HOST, +]; + if ( process.env.NODE_ENV === "production" && (!process.env.NEXT_DOCS_ORIGIN || !process.env.NEXT_BLOG_ORIGIN) @@ -246,12 +254,10 @@ const config = { reactStrictMode: true, images: { unoptimized: false, - remotePatterns: [ - { - protocol: "https", - hostname: "cdn.sanity.io", - }, - ], + remotePatterns: imageRemoteHostnames.map((hostname) => ({ + protocol: "https", + hostname, + })), }, transpilePackages: ["@prisma/eclipse"], async redirects() { diff --git a/apps/site/src/components/support/search.tsx b/apps/site/src/components/support/search.tsx index 6cd433b9d5..473df7bf43 100644 --- a/apps/site/src/components/support/search.tsx +++ b/apps/site/src/components/support/search.tsx @@ -59,7 +59,7 @@ function SearchResultItem({ item, onClick }: SearchResultItemProps): ReactNode {
{post.heroImagePath ? (