// ABOUTME: Next.js configuration for PhaseFlow application. // ABOUTME: Configures standalone output and injects git commit hash for build verification. import { execSync } from "node:child_process"; import type { NextConfig } from "next"; // Get git commit hash at build time for deployment verification function getGitCommit(): string { try { return execSync("git rev-parse --short HEAD").toString().trim(); } catch { return "unknown"; } } const nextConfig: NextConfig = { output: "standalone", env: { GIT_COMMIT: process.env.GIT_COMMIT || getGitCommit(), }, }; export default nextConfig;