Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-clouds-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"testerapp": patch
---

Improve the way remote assets and bundle are served for Release builds of the TesterApp
2 changes: 1 addition & 1 deletion packages/TesterApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ScriptManager.shared.addResolver(async (scriptId, _caller) => {
}

return {
url: Script.getRemoteURL(`http://localhost:5000/${scriptId}`),
url: Script.getRemoteURL(`http://localhost:9999/${scriptId}`),
};
});

Expand Down
6 changes: 3 additions & 3 deletions packages/TesterApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native webpack-start",
"bundle": "react-native webpack-bundle --platform ios --entry-file index.js --dev=false",
"webpack": "webpack -c webpack.config.js --env platform=ios --env mode=production",
"bundle": "react-native webpack-bundle --platform android --entry-file index.js --dev=false",
"webpack": "webpack -c webpack.config.js --env platform=android --env mode=production",
"test": "vitest run",
"serve-remote-assets": "yarn http-server -p 9999 build/output/ios/remote/remote-assets"
"serve-remote-assets": "yarn http-server -p 9999 build/output/android/remote && adb reverse tcp:9999 tcp:9999"
Comment thread
RafikiTiki marked this conversation as resolved.
},
"dependencies": {
"@callstack/repack": "3.2.0-rc.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/TesterApp/webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default (env) => {
scalableAssetExtensions: Repack.SCALABLE_ASSETS,
remote: {
enabled: true,
publicPath: 'http://localhost:9999',
publicPath: 'http://localhost:9999/remote-assets',
},
},
},
Expand Down