Skip to content

Commit

Permalink
fix: make sure the port passed to Metro is a number (react-native-com…
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored Jun 12, 2019
1 parent fe2c761 commit 973e768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/tools/loadMetroConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const getDefaultConfig = (ctx: ConfigT) => {
require(path.join(ctx.reactNativePath, 'rn-get-polyfills'))(),
},
server: {
port: process.env.RCT_METRO_PORT || 8081,
port: Number(process.env.RCT_METRO_PORT) || 8081,
},
transformer: {
babelTransformerPath: require.resolve(
Expand Down

0 comments on commit 973e768

Please sign in to comment.