fix(server): set right AFFINE_SERVER_HOST env variable (#4108)

This commit is contained in:
LongYinan
2023-09-01 18:37:48 +08:00
committed by GitHub
parent 18ac355df3
commit e76cdf4d71
2 changed files with 5 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ app.use(cookieParser());
const config = app.get(Config);
const host = config.host ?? 'localhost';
const host = config.node.prod ? '0.0.0.0' : 'localhost';
const port = config.port ?? 3010;
if (!config.objectStorage.r2.enabled) {