mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-23 12:06:07 -05:00
backpedal a bit on caching
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { buildFeed } from "../../lib/helpers/build-feed";
|
||||
|
||||
export const dynamic = "force-static";
|
||||
@@ -5,7 +6,7 @@ export const dynamic = "force-static";
|
||||
export const GET = async () => {
|
||||
const feed = await buildFeed();
|
||||
|
||||
return new Response(feed.atom1(), {
|
||||
return new NextResponse(feed.atom1(), {
|
||||
headers: {
|
||||
"content-type": "application/atom+xml; charset=utf-8",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user