diff --git a/packages/frontend/scripts/createEnvFile.ts b/packages/frontend/scripts/createEnvFile.ts index 16d9f0d4..b63b1ceb 100644 --- a/packages/frontend/scripts/createEnvFile.ts +++ b/packages/frontend/scripts/createEnvFile.ts @@ -10,7 +10,9 @@ export const createEnvFile = async () => { .map(([key, value]) => `${key}: "${value}"`) .join(",\n"); - const contentJs = `window.ENV = { ${values} };`; + const version = "0.1.0." + Math.floor(Date.now() / 1000).toString(16); + + const contentJs = `window.ENV = { ${values}, VERSION: "${version}" };`; await fs.writeFile("./dist/env.js", contentJs); };