Skip to content

Commit 0c4c309

Browse files
committed
Update config.ts
1 parent 3e4e696 commit 0c4c309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export const config = {
33
// 服务器配置
44
server: {
5-
port: process.env.PORT || 3000,
5+
port: Number(process.env.PORT) || 3000,
66
host: process.env.HOST || 'localhost',
77
},
88

0 commit comments

Comments
 (0)