Restore from Gitea ZIP snapshot (12.08.2026) after full instance reinstall
Git history was lost when the previous Gitea instance was wiped and reinstalled due to an unresolved corruption bug — this commit is the last known-good file content, exported before the reinstall. Prior commit history is not recoverable through this path.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// Not using output: "standalone" — file-tracing only copies argon2's
|
||||
// native .node binaries, not its JS loader, causing a segfault in
|
||||
// production. Deploying with the full node_modules via `next start` is
|
||||
// simple enough for a single-VM deployment.
|
||||
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
// Every page is personalized (session, wallet balance, owned
|
||||
// games) — an intermediate proxy (nginx, a CDN) has no business
|
||||
// caching any of it. Static assets under /_next/static are
|
||||
// content-hashed by the build and are explicitly excluded here so
|
||||
// they keep their own long-lived caching.
|
||||
source: "/((?!_next/static).*)",
|
||||
headers: [{ key: "Cache-Control", value: "no-store" }],
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user