Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

build(core): fix non-canary assets bucket (#4116)

LongYinandb3a6efaf3db
diff --git a/packages/cli/src/bin/build-core.ts b/packages/cli/src/bin/build-core.ts
index 5a35d0a42e..251d394dec 100644
--- a/packages/cli/src/bin/build-core.ts
+++ b/packages/cli/src/bin/build-core.ts
@@ -10,6 +10,10 @@ const cwd = path.resolve(projectRoot, 'apps', 'core');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const buildType = process.env.BUILD_TYPE_OVERRIDE || process.env.BUILD_TYPE;
+if (process.env.BUILD_TYPE_OVERRIDE) {
+ process.env.BUILD_TYPE = process.env.BUILD_TYPE_OVERRIDE;
+}
+
const getChannel = () => {
switch (buildType) {
case 'canary':