Skip to content
Snippets Groups Projects
Unverified Commit 0ba92a4f authored by syuilo's avatar syuilo
Browse files

設定でポートが指定されていない場合、環境変数を参照するように

parent 7dc5009e
No related merge requests found
......@@ -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(/:$/, '');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment