diff --git a/apps/login/.eslintrc.cjs b/apps/login/.eslintrc.cjs
index d704a7f0c3d..bbca76e6c9a 100644
--- a/apps/login/.eslintrc.cjs
+++ b/apps/login/.eslintrc.cjs
@@ -12,6 +12,12 @@ module.exports = {
varsIgnorePattern: "^_" ,
}],
"no-undef": "off",
+ "no-restricted-imports": ["error", {
+ "paths": [{
+ "name": "next/image",
+ "message": "Use of next/image is forbidden. Use regular
elements instead."
+ }]
+ }],
},
parserOptions: {
ecmaVersion: "latest",
diff --git a/apps/login/next.config.mjs b/apps/login/next.config.mjs
index e4f2de05eaf..7d12d78867f 100755
--- a/apps/login/next.config.mjs
+++ b/apps/login/next.config.mjs
@@ -42,9 +42,6 @@ const nextConfig = {
// Add React 19 compatibility optimizations
optimizePackageImports: ['@radix-ui/react-tooltip', '@heroicons/react'],
},
- images: {
- unoptimized: true
- },
eslint: {
ignoreDuringBuilds: true,
},
diff --git a/apps/login/src/components/app-avatar.tsx b/apps/login/src/components/app-avatar.tsx
index 84879d08acf..8686043fa0f 100644
--- a/apps/login/src/components/app-avatar.tsx
+++ b/apps/login/src/components/app-avatar.tsx
@@ -1,6 +1,5 @@
import { ColorShade, getColorHash } from "@/helpers/colors";
import { useTheme } from "next-themes";
-import Image from "next/image";
import { getInitials } from "./avatar";
interface AvatarProps {
@@ -33,7 +32,7 @@ export function AppAvatar({ appName, imageUrl, shadow }: AvatarProps) {
style={resolvedTheme === "light" ? avatarStyleLight : avatarStyleDark}
>
{imageUrl ? (
-
{imageUrl ? (
-
) : (
-
- {credentials}
-
+ {credentials}
)}
);
diff --git a/apps/login/src/components/logo.tsx b/apps/login/src/components/logo.tsx
index 09819f2ac35..b56d7a0a6f1 100644
--- a/apps/login/src/components/logo.tsx
+++ b/apps/login/src/components/logo.tsx
@@ -1,5 +1,3 @@
-import Image from "next/image";
-
type Props = {
darkSrc?: string;
lightSrc?: string;
@@ -12,24 +10,12 @@ export function Logo({ lightSrc, darkSrc, height = 40, width = 147.5 }: Props) {
<>
{darkSrc && (
-
+
)}
{lightSrc && (
-
+
)}
>
diff --git a/apps/login/src/components/zitadel-logo.tsx b/apps/login/src/components/zitadel-logo.tsx
index 105665fbba7..472e879624f 100644
--- a/apps/login/src/components/zitadel-logo.tsx
+++ b/apps/login/src/components/zitadel-logo.tsx
@@ -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) {
{/*
*/}
-
+
-
+
>
);