Files
EpicNext-Cms/next.config.ts
T
openhands f63ca708fe
CI / check (push) Failing after 26s
CI / release (push) Skipped
CI / deploy (push) Skipped
Fix deploymentId in next.config.ts
2026-08-25 22:20:41 +02:00

18 lines
404 B
TypeScript

import { execSync } from "node:child_process";
import type { NextConfig } from "next";
const getGitCommit = () => {
try {
return execSync("git rev-parse HEAD", { encoding: "utf8" }).trim();
} catch {
return undefined;
}
};
const nextConfig: NextConfig = {
deploymentId: process.env.NEXT_DEPLOYMENT_ID?.trim() || getGitCommit(),
serverExternalPackages: ["lzma"],
};
export default nextConfig;