Skip to content

Commit 8e53da4

Browse files
committed
πŸ“ docs: fix img src
1 parent 6431f94 commit 8e53da4

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

β€Ždocs/app/(home)/page.tsxβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ArrowRight } from "lucide-react";
22
import Image from "next/image";
33
import Link from "next/link";
4+
import demo from "../../public/demo.gif";
45

56
export default function HomePage() {
67
return (
@@ -58,7 +59,7 @@ export default function HomePage() {
5859
</div>
5960

6061
<div className="max-md:p-12">
61-
<Image width={600} height={300} alt="demo" src="/demo.gif" />
62+
<Image width={600} height={300} alt="demo" src={demo} />
6263
</div>
6364
</div>
6465
</div>

β€Ždocs/lib/layout.shared.tsxβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
22
import Image from "next/image";
3+
import icon from "../public/icon.png";
34

45
export function baseOptions(): BaseLayoutProps {
56
return {
67
nav: {
78
title: (
89
<>
9-
<Image width={24} height={24} src="/icon.png" alt="icon" />
10+
<Image width={24} height={24} src={icon} alt="icon" />
1011
committier
1112
</>
1213
),

β€Ždocs/next.config.mjsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const config = {
1010
root: import.meta.dirname,
1111
},
1212
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
13-
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH,
1413
images: { unoptimized: true },
1514
};
1615

0 commit comments

Comments
Β (0)