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.

fix: separate public domain for beta assets (#7550)

liuyi544236f1a082
diff --git a/tools/cli/src/webpack/config.ts b/tools/cli/src/webpack/config.ts
index 1cc97eceac..c7055a23e7 100644
--- a/tools/cli/src/webpack/config.ts
+++ b/tools/cli/src/webpack/config.ts
@@ -77,9 +77,11 @@ export const getPublicPath = (buildFlags: BuildFlags) => {
}
if (BUILD_TYPE === 'canary') {
- return `https://dev.affineassets.com/${BUILD_TYPE}/`;
- } else if (BUILD_TYPE === 'beta' || BUILD_TYPE === 'stable') {
- return `https://prod.affineassets.com/${BUILD_TYPE}/`;
+ return `https://dev.affineassets.com/`;
+ } else if (BUILD_TYPE === 'beta') {
+ return `https://beta.affineassets.com/`;
+ } else if (BUILD_TYPE === 'prod') {
+ return `https://prod.affineassets.com/`;
}
return publicPath;
};