Skip to content

Commit 3c0920f

Browse files
authored
port (#550)
# PRの概要 ## 具体的な変更内容 ## 影響範囲 ## 動作要件 ## 補足 ## レビューリクエストを出す前にチェック! - [ ] 改めてセルフレビューしたか - [ ] 手動での動作検証を行ったか - [ ] server の機能追加ならば、テストを書いたか - 理由: 書いた | server の機能追加ではない - [ ] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか - 理由: 書いた | 間違った使い方は存在しない - [ ] わかりやすいPRになっているか <!-- レビューリクエスト後は、Slackでもメンションしてお願いすることを推奨します。 -->
1 parent 1606008 commit 3c0920f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const app = express();
1717
// https://expressjs.com/ja/api.html#app.settings.table の query parser を参照。
1818
app.set("query parser", "simple");
1919

20-
const port = 3000;
20+
const port = process.env.PORT || 3000;
2121
const allowedOrigins = (
2222
process.env.CORS_ALLOW_ORIGINS || panic("env CORS_ALLOW_ORIGINS is missing")
2323
)

0 commit comments

Comments
 (0)