- flake.nix: build hermyhq via npm ci + next build (standalone), package .next/standalone + static + public behind /nix/var/nix/profiles/hermyhq - next.config.ts: output: 'standalone' (Nix deploy bundles self-contained server) - .github/workflows/deploy.yml: nix-installer (DeterminateSystems) + attic push pub:asepharyana + VPS nix-store realise (fallback ssh copy) + nix-env profile + systemctl restart hermyhq + GC cleanup
17 lines
325 B
TypeScript
17 lines
325 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Vercel-compatible settings
|
|
output: "standalone", // Nix deploy bundles the standalone server
|
|
images: {
|
|
unoptimized: false,
|
|
},
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: "4mb",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|