Change default server port to 3600
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ export function parsePublicOrigin(value) {
|
||||
export function readConfig(env = process.env) {
|
||||
const distRoot = join(SOURCE_ROOT, 'dist');
|
||||
const dbPath = privateDatabasePath(env.DB_PATH, distRoot);
|
||||
const portText = env.PORT ?? '3000';
|
||||
const portText = env.PORT ?? '3600';
|
||||
if (!/^[0-9]+$/.test(portText) || +portText < 1 || +portText > 65535) throw new Error('Invalid PORT');
|
||||
const port = +portText;
|
||||
const host = env.HOST ?? '127.0.0.1';
|
||||
|
||||
Reference in New Issue
Block a user