mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
feat(electron): define runtimeConfig in esbuild (#6287)
This commit is contained in:
@@ -6,6 +6,7 @@ async function buildLayers() {
|
||||
const common = config();
|
||||
|
||||
const define: Record<string, string> = {
|
||||
...common.define,
|
||||
'process.env.NODE_ENV': `"${mode}"`,
|
||||
'process.env.BUILD_TYPE': `"${process.env.BUILD_TYPE || 'stable'}"`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user