Skip to content

Commit a48dfbe

Browse files
committed
add dynamic export to routes
1 parent e3410dc commit a48dfbe

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/app/feed.xml/route.ts

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

5+
export const dynamic = "force-static";
6+
57
export async function GET() {
68
const posts = getAllPosts();
79

src/app/robots.txt/route.ts

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

3+
export const dynamic = "force-static";
4+
35
export async function GET() {
46
const robotsTxt = `User-agent: *
57
Allow: /

src/app/sitemap.xml/route.ts

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

4+
export const dynamic = "force-static";
5+
46
export async function GET() {
57
const posts = getAllPosts();
68
const baseUrl = "https://openvoiceos.github.io/ovos-blogs";

0 commit comments

Comments
 (0)