fix(login): remove image optimization entirely (#10702)

This PR completely removes Next.js image optimization from the login app
by replacing all next/image components with standard HTML <img> tags and
removing the image optimization configuration.

Closes https://github.com/zitadel/zitadel-charts/issues/381

# Which Problems Are Solved

Users were encountering issue when loading images in dedicated
environments. These happened due to nextjs imaging optimizations
creating different paths for images.

# How the Problems Are Solved

- Removed Next.js Image Optimization Config
- Removed images: { unoptimized: true } configuration from
[next.config.mjs](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)
This config was redundant since we no longer use next/image components
- Replaced next/image with standard <img> tags
This commit is contained in:
Max Peintner
2025-09-22 11:49:21 +00:00
committed by GitHub
parent 44902e11b7
commit 0a31f4ba2b
6 changed files with 15 additions and 52 deletions
+2 -15
View File
@@ -1,4 +1,3 @@
import Image from "next/image";
type Props = {
height?: number;
width?: number;
@@ -10,22 +9,10 @@ export function ZitadelLogo({ height = 40, width = 147.5 }: Props) {
<div className="hidden dark:flex">
{/* <ZitadelLogoLight /> */}
<Image
height={height}
width={width}
src="/zitadel-logo-light.svg"
alt="zitadel logo"
priority={true}
/>
<img height={height} width={width} src="/zitadel-logo-light.svg" alt="zitadel logo" />
</div>
<div className="flex dark:hidden">
<Image
height={height}
width={width}
priority={true}
src="/zitadel-logo-dark.svg"
alt="zitadel logo"
/>
<img height={height} width={width} src="/zitadel-logo-dark.svg" alt="zitadel logo" />
</div>
</>
);