Files
Epicnabbo-Catalogus-Updated…/next.config.ts
T

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;