Skip to content

Commit

Permalink
Allow overriding commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and futurepaul committed Oct 20, 2023
1 parent 5e1b97d commit eb16316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "/",
Expand Down

0 comments on commit eb16316

Please sign in to comment.