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(server): add port to host if it is 0.0.0.0 (#5619)

liuyid9324286d4b3
diff --git a/packages/backend/server/src/fundamentals/config/default.ts b/packages/backend/server/src/fundamentals/config/default.ts
index e16d3e464d..ae194f112f 100644
--- a/packages/backend/server/src/fundamentals/config/default.ts
+++ b/packages/backend/server/src/fundamentals/config/default.ts
@@ -92,7 +92,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
return this.node.dev
? 'http://localhost:8080'
: `${this.https ? 'https' : 'http'}://${this.host}${
- this.host === 'localhost' ? `:${this.port}` : ''
+ this.host === 'localhost' || this.host === '0.0.0.0'
+ ? `:${this.port}`
+ : ''
}`;
},
get baseUrl() {