Skip to content

Commit 90b2c30

Browse files
committed
Update ESLint rules and add dynamic export to robots and sitemap
1 parent cd7a7ad commit 90b2c30

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

site/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": ["next/core-web-vitals"],
33
"rules": {
4-
"@next/next/no-html-link-for-pages": "off"
4+
"@next/next/no-img-element": "off"
55
}
66
}

site/src/app/robots.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { MetadataRoute } from "next";
22

3+
export const dynamic = "force-static";
4+
35
export default function robots(): MetadataRoute.Robots {
46
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL;
57
return {

site/src/app/sitemap.ts

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

4+
export const dynamic = "force-static";
5+
46
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
57
const pages = await getAllContentPages();
68
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL?.replace(/\/$/, "");

0 commit comments

Comments
 (0)