aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/version.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/util/version.ts')
-rw-r--r--packages/instant/src/util/version.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/util/version.ts b/packages/instant/src/util/version.ts
new file mode 100644
index 000000000..5264cd659
--- /dev/null
+++ b/packages/instant/src/util/version.ts
@@ -0,0 +1,8 @@
+const anyWindow = window as any;
+
+export const versionUtil = {
+ writeVersionInfoToWindow: () => {
+ anyWindow.__zeroExInstantGitSha = process.env.GIT_SHA;
+ anyWindow.__zeroExInstantNpmVersion = process.env.NPM_PACKAGE_VERSION;
+ },
+};