const { execSync } = require('child_process'); const commitSha = process.env.COMMIT_SHA || (() => { try { return execSync('git rev-parse --short HEAD').toString().trim(); } catch { return 'dev'; } })(); /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', env: { NEXT_PUBLIC_COMMIT_SHA: commitSha, }, }; module.exports = nextConfig;