diff --git a/apps/login/next.config.mjs b/apps/login/next.config.mjs index b84f11a23..3ac2e59a1 100755 --- a/apps/login/next.config.mjs +++ b/apps/login/next.config.mjs @@ -33,30 +33,6 @@ const secureHeaders = [ { key: "X-Frame-Options", value: "deny" }, ]; -const imageRemotePatterns = [ - { - protocol: "http", - hostname: "localhost", - port: "8080", - pathname: "/**", - }, - { - protocol: "https", - hostname: "*.zitadel.*", - port: "", - pathname: "/**", - }, -]; - -if (process.env.ZITADEL_API_URL) { - imageRemotePatterns.push({ - protocol: "https", - hostname: process.env.ZITADEL_API_URL?.replace("https://", "") || "", - port: "", - pathname: "/**", - }); -} - const nextConfig = { basePath: process.env.NEXT_PUBLIC_BASE_PATH, output: process.env.NEXT_OUTPUT_MODE || undefined, @@ -65,7 +41,7 @@ const nextConfig = { dynamicIO: true, }, images: { - remotePatterns: imageRemotePatterns, + unoptimized: true }, eslint: { ignoreDuringBuilds: true,