full upgrade to dev

This commit is contained in:
2026-01-08 11:40:42 +01:00
parent 7320a0562d
commit 41f404c581
4 changed files with 48 additions and 28 deletions

View File

@@ -81,10 +81,9 @@ export async function GET() {
// For tests return a plain object so tests can inspect `.body` easily
if (process.env.NODE_ENV === "test") {
return {
body: xml,
return new NextResponse(xml, {
headers: { "Content-Type": "application/xml" },
};
});
}
return new NextResponse(xml, {
@@ -115,7 +114,7 @@ export async function GET() {
try {
const mod = await import("node-fetch");
const nodeFetch = mod.default ?? mod;
response = await nodeFetch(
response = await (nodeFetch as unknown as typeof fetch)(
`${process.env.GHOST_API_URL}/ghost/api/content/posts/?key=${process.env.GHOST_API_KEY}&limit=all`,
);
} catch (err) {