Sync
This commit is contained in:
parent
546f89e970
commit
a18640344e
77 changed files with 8201 additions and 2 deletions
22
next.config.ts
Normal file
22
next.config.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import type { NextConfig } from "next";
|
||||
import { execSync } from "child_process";
|
||||
|
||||
// Get the current git commit hash
|
||||
const getGitCommitHash = () => {
|
||||
try {
|
||||
return execSync("git rev-parse --short HEAD", { encoding: "utf8" }).trim();
|
||||
} catch (error) {
|
||||
console.warn("Could not get git commit hash:", error);
|
||||
return "unknown";
|
||||
}
|
||||
};
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "export",
|
||||
reactCompiler: true,
|
||||
env: {
|
||||
NEXT_PUBLIC_GIT_COMMIT: getGitCommitHash(),
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Loading…
Reference in a new issue