File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11import { MetadataRoute } from "next" ;
22
3+ export const dynamic = "force-static" ;
4+
35export default function robots ( ) : MetadataRoute . Robots {
46 const siteUrl = process . env . NEXT_PUBLIC_SITE_URL ;
57 return {
Original file line number Diff line number Diff line change 11import { MetadataRoute } from "next" ;
22import { getAllContentPages } from "@/lib/content" ;
33
4+ export const dynamic = "force-static" ;
5+
46export default async function sitemap ( ) : Promise < MetadataRoute . Sitemap > {
57 const pages = await getAllContentPages ( ) ;
68 const siteUrl = process . env . NEXT_PUBLIC_SITE_URL ?. replace ( / \/ $ / , "" ) ;
You can’t perform that action at this time.
0 commit comments