diff --git a/app/api/newsletter/route.ts b/app/api/newsletter/route.ts index 41e205d..b2c3b74 100644 --- a/app/api/newsletter/route.ts +++ b/app/api/newsletter/route.ts @@ -1,6 +1,8 @@ import { NewsletterAPI } from 'pliny/newsletter' import siteMetadata from '@/data/siteMetadata' +export const dynamic = 'force-static' + const handler = NewsletterAPI({ // @ts-ignore provider: siteMetadata.newsletter.provider, diff --git a/app/robots.ts b/app/robots.ts index abb35c4..6ee84fe 100644 --- a/app/robots.ts +++ b/app/robots.ts @@ -1,6 +1,8 @@ import { MetadataRoute } from 'next' import siteMetadata from '@/data/siteMetadata' +export const dynamic = 'force-static' + export default function robots(): MetadataRoute.Robots { return { rules: { diff --git a/app/sitemap.ts b/app/sitemap.ts index 8d7a66b..f52bebd 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -2,6 +2,8 @@ import { MetadataRoute } from 'next' import { allBlogs } from 'contentlayer/generated' import siteMetadata from '@/data/siteMetadata' +export const dynamic = 'force-static' + export default function sitemap(): MetadataRoute.Sitemap { const siteUrl = siteMetadata.siteUrl