This commit is contained in:
Alois 2026-04-02 22:39:50 +02:00
commit a18640344e
77 changed files with 8201 additions and 2 deletions

22
next.config.ts Normal file
View 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;