Add R2 image display in homepage with CDN support
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-10 03:10:57 +02:00
parent 2f07cc86db
commit 8a380499e7
2 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import Image from "next/image";
import { cdnUrl } from "@/lib/cdn";
import { PostHogTestButton } from "./posthog-test-button";
export default function Home() {
@@ -8,6 +10,13 @@ export default function Home() {
<p className="text-xl text-muted-foreground">
Производитель фасадной плитки
</p>
<Image
src={cdnUrl("test/Frame 55.png")}
alt="Test R2 image"
width={600}
height={486}
className="rounded-lg shadow-lg"
/>
<div className="flex gap-4 text-sm text-muted-foreground">
<span>Next.js</span>
<span>+</span>