mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
More stringent caching mitigation
This commit is contained in:
parent
8052a2be62
commit
975f0e7ca5
@ -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>;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user