mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 13:58:50 +08:00
fix(server): should not listen on user defined host (#5622)
This commit is contained in:
@@ -4,11 +4,7 @@ const env = process.env;
|
||||
const node = AFFiNE.node;
|
||||
|
||||
// TODO(@forehalo): detail explained
|
||||
AFFiNE.host = 'localhost';
|
||||
AFFiNE.port = 3010;
|
||||
|
||||
if (node.prod) {
|
||||
AFFiNE.host = '0.0.0.0';
|
||||
// Storage
|
||||
if (env.R2_OBJECT_STORAGE_ACCOUNT_ID) {
|
||||
AFFiNE.storage.providers.r2 = {
|
||||
|
||||
Reference in New Issue
Block a user