mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
Allow overriding commit hash
This commit is contained in:
committed by
Paul Miller
parent
5e1b97d6ba
commit
eb16316ba2
@@ -9,7 +9,7 @@ import manifest from "./manifest";
|
||||
import * as path from "path";
|
||||
import * as child from "child_process";
|
||||
|
||||
const commitHash = child.execSync("git rev-parse --short HEAD").toString().trim();
|
||||
const commitHash = process.env.VITE_COMMIT_HASH ?? child.execSync("git rev-parse --short HEAD").toString().trim();
|
||||
|
||||
const pwaOptions: Partial<VitePWAOptions> = {
|
||||
base: "/",
|
||||
|
||||
Reference in New Issue
Block a user