Skip to content

Commit 1fc2129

Browse files
committed
fix: build errors by excluding Updateforbetter from tsconfig and fix default hero image logic
1 parent 9448681 commit 1fc2129

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

features/home/components/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function HeroSection({ content }: HeroSectionProps) {
1818
{/* Background Image */}
1919
<div className="absolute inset-0 z-0">
2020
<Image
21-
src={content.image_url || "/hero-default.jpg"}
21+
src={content.image_url && content.image_url.trim() !== '' && !content.image_url.includes('hero-default') ? content.image_url : "/logo.jpg"}
2222
alt="Hero background"
2323
fill
2424
className="object-cover object-center w-full h-full"

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"**/*.mts"
3939
],
4040
"exclude": [
41-
"node_modules"
41+
"node_modules",
42+
"Updateforbetter"
4243
]
4344
}

0 commit comments

Comments
 (0)