mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
設定でポートが指定されていない場合、環境変数を参照するように
This commit is contained in:
parent
156577ab61
commit
9bbdb59088
@ -29,6 +29,8 @@ export default function load() {
|
||||
|
||||
config.url = normalizeUrl(config.url);
|
||||
|
||||
config.port = config.port || parseInt(process.env.PORT, 10);
|
||||
|
||||
mixin.host = url.host;
|
||||
mixin.hostname = url.hostname;
|
||||
mixin.scheme = url.protocol.replace(/:$/, '');
|
||||
|
Loading…
Reference in New Issue
Block a user