1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-27 14:45:41 -04:00

disable caching for /api/auth/**

This commit is contained in:
2025-05-21 08:56:21 -04:00
parent fd7673c8c5
commit 83f1cc2fa9

View File

@ -65,7 +65,15 @@ const nextConfig = {
},
],
},
{
source: "/api/auth/(.*)",
headers: [
{
key: "cache-control",
value: "private, max-age=0",
},
],
},
// https://community.torproject.org/onion-services/advanced/onion-location/
...(process.env.NEXT_PUBLIC_ONION_DOMAIN
? [