Fixes build

This commit is contained in:
Michel Fedde 2025-06-26 21:48:55 +02:00
parent 917c1f1fed
commit 4f5beda018
2 changed files with 18 additions and 9 deletions

View file

@ -3,10 +3,13 @@ import * as child_process from "node:child_process";
import {json} from "node:stream/consumers";
import * as fs from "node:fs";
const buildContext = {
target: process.env.BUILD_TARGET ?? 'LOCAL',
commitHash: child_process.execSync("git rev-parse HEAD").toString(),
label: process.env.BUILD_LABEL ?? 'development',
}
export function createBuildFile() {
const buildContext = {
target: process.env.BUILD_TARGET ?? 'LOCAL',
commitHash: child_process.execSync("git rev-parse HEAD").toString(),
label: process.env.BUILD_LABEL ?? 'development',
}
fs.writeFileSync("./dist/deploy.json", JSON.stringify(buildContext))
fs.writeFileSync("./dist/deploy.json", JSON.stringify(buildContext))
}