More stringent caching mitigation

This commit is contained in:
Konstantin Wohlwend 2026-02-23 10:54:04 -08:00
parent 8052a2be62
commit 975f0e7ca5

View File

@ -1,3 +1,13 @@
export default function NotFound() {
return "Not Found";
import { connection } from "next/server";
export const dynamic = "force-dynamic";
export const fetchCache = "force-no-store";
export const revalidate = 0;
export default async function NotFound() {
await connection(); // guarantees we will never prerender
return <div>
404 Not Found
</div>;
}