ci(deploy): Nix flake + GitHub Actions pipeline for hermyhq (Next.js 16 standalone)

- 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
This commit is contained in:
MythEclipse
2026-09-20 15:59:41 +07:00
parent b5ba9bdf96
commit 5a30971ded
3 changed files with 245 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Vercel-compatible settings
output: undefined, // default — Vercel handles this automatically
output: "standalone", // Nix deploy bundles the standalone server
images: {
unoptimized: false,
},