File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { NextConfig } from "next";
22
33const nextConfig : NextConfig = {
44 /* config options here */
5+ output : 'export' ,
56} ;
67
78export default nextConfig ;
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 . SITE_URL ;
57 return {
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { MetadataRoute } from "next";
22import { siteConfig } from "@/lib/config" ;
33import { isInternalHref } from "@/lib/utils" ;
44
5+ export const dynamic = 'force-static' ;
6+
57export default function sitemap ( ) : MetadataRoute . Sitemap {
68 const rawSiteUrl = process . env . SITE_URL || "" ;
79 const siteUrl = rawSiteUrl . replace ( / \/ $ / , "" ) ; // remove trailing slash
You can’t perform that action at this time.
0 commit comments