Skip to content

Commit 1b88261

Browse files
committed
port
1 parent 1606008 commit 1b88261

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)