Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore(build): add build env (#3539)

#FF000006048e246f17
diff --git a/common/shared/vite/index.js b/common/shared/vite/index.js
index 8ac383b164..18eb19262a 100644
--- a/common/shared/vite/index.js
+++ b/common/shared/vite/index.js
@@ -79,6 +79,7 @@ function createViteConfig(overrideConfig, /** @type {IOptions} */ options) {
define: {
'process.env.NODE_ENV': JSON.stringify(mode),
'process.env.BUNDLE_TYPE': JSON.stringify(process.env.BUNDLE_TYPE ?? ''),
+ 'process.env.BUILD_TIMESTAMP': JSON.stringify(parseInt(Date.now() / 1000)),
},
test: {
css: {