Skip to content

Commit ea66ccd

Browse files
committed
feat(server): allow to specify port using env variable
1 parent a353ff5 commit ea66ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/smooth-core/src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function getConfig({ dev }) {
3333
pagesPath: path.join(localCwd, 'src/pages'),
3434
schemasPath: path.join(localCwd, 'src/schemas'),
3535
server: {
36-
port: 3000,
36+
port: process.env.PORT || 3000,
3737
},
3838
webpackConfig: null,
3939
plugins: [],

0 commit comments

Comments
 (0)