mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
設定でポートが指定されていない場合、環境変数を参照するように
This commit is contained in:
parent
156577ab61
commit
9bbdb59088
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue