Skip to content

Commit b048ec7

Browse files
authored
Merge pull request #135 from daku10/fix/build-error
Fix/build error
2 parents 66d8e3c + ada85c7 commit b048ec7

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/app/feed.xml/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import RSS from "rss";
22
import { retrievePostSummaries } from "@/lib/api";
33

4+
export const dynamic = "force-static";
5+
46
export async function GET() {
57
const feed = new RSS({
68
title: "blog.daku10.dev",

src/app/sitemap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { MetadataRoute } from "next";
22
import { retrievePostSummaries } from "@/lib/api";
33

4+
export const dynamic = "force-static";
5+
46
// TODO: can we create automatically?
57
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
68
const lastModified = new Date();

src/components/Link.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ type Props = {
66
className?: string;
77
target?: string;
88
rel?: string;
9+
onClick?: () => void;
910
prefetch?: boolean;
1011
};
1112

0 commit comments

Comments
 (0)