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.

chore: remove unuse site logic

lawvsb97e17643cf1
diff --git a/libs/datasource/jwt/src/types/index.ts b/libs/datasource/jwt/src/types/index.ts
index 7e54afc6bf..ffbe912045 100644
--- a/libs/datasource/jwt/src/types/index.ts
+++ b/libs/datasource/jwt/src/types/index.ts
@@ -16,9 +16,7 @@ function getLocation() {
function getCollaborationPoint() {
const { protocol, host } = getLocation();
const ws = protocol.startsWith('https') ? 'wss' : 'ws';
- const isOnline = host.endsWith('affine.pro');
- const site = isOnline ? host : 'localhost:3000';
- return `${ws}://${site}/collaboration/`;
+ return `${ws}://${host}/collaboration/`;
}
export const BucketBackend = {