From 73492714ef850417531a722f9a019827760d0929 Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Wed, 29 May 2024 13:32:41 -0700 Subject: [PATCH] Change webpack dev-server port from 8081 to 8084 --- CHANGELOG.md | 2 ++ README.md | 2 +- src/react-native.ts | 2 +- webpack.config.js | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 171cbb69..f5596d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- changed: Changed webpack dev server port to 8084 to resolve conflict with metro's 8081 usage. + ## 3.0.0 (2024-05-14) - added: Added blockbook-nownode server configs to BTC, BCH, DASH, DGB, GRS, LTC, and FIRO diff --git a/README.md b/README.md index 3b88ca37..23721a45 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ The bundle located in `dist/edge-currency-plugins.js` will automatically registe ``` If you want to debug this project, run `yarn start` to start a Webpack server, -and then adjust your script URL to http://localhost:8081/edge-currency-plugins.js. +and then adjust your script URL to http://localhost:8084/edge-currency-plugins.js. ### React Native diff --git a/src/react-native.ts b/src/react-native.ts index 6d02cacf..bf2c8531 100644 --- a/src/react-native.ts +++ b/src/react-native.ts @@ -5,7 +5,7 @@ const { EdgeCurrencyPluginsModule } = NativeModules const { sourceUri } = EdgeCurrencyPluginsModule.getConstants() export const pluginUri = sourceUri -export const debugUri = 'http://localhost:8081/edge-currency-plugins.js' +export const debugUri = 'http://localhost:8084/edge-currency-plugins.js' export interface EdgeCurrencyPluginIoOptions { readonly memletConfig?: MemletConfig diff --git a/webpack.config.js b/webpack.config.js index 37cae85d..a5df3dec 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,8 +8,8 @@ const debug = process.env.WEBPACK_SERVE // Try exposing our socket to adb (errors are fine): if (process.env.WEBPACK_SERVE) { - console.log('adb reverse tcp:8081 tcp:8081') - exec('adb reverse tcp:8081 tcp:8081', () => {}) + console.log('adb reverse tcp:8084 tcp:8084') + exec('adb reverse tcp:8084 tcp:8084', () => {}) } const bundlePath = path.resolve( @@ -22,7 +22,7 @@ module.exports = { devServer: { allowedHosts: 'all', hot: false, - port: 8081, + port: 8084, static: bundlePath }, entry: './src/index.ts',