Skip to content

Commit 2b54e15

Browse files
authored
fix: add dev.client.port to support hmr (#4287)
1 parent 7b5f961 commit 2b54e15

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

react-manifest-example/remote1/rsbuild.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export default defineConfig({
88
},
99
dev: {
1010
// It is necessary to configure assetPrefix, and in the production environment, you need to configure output.assetPrefix
11-
assetPrefix: 'http://localhost:3001',
11+
assetPrefix: true,
12+
client: {
13+
port: 3001
14+
}
1215
},
1316
tools: {
1417
rspack: (config, { appendPlugins }) => {

react-manifest-example/remote2/rsbuild.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export default defineConfig({
88
},
99
dev: {
1010
// It is necessary to configure assetPrefix, and in the production environment, you need to configure output.assetPrefix
11-
assetPrefix: 'http://localhost:3002',
11+
assetPrefix: true,
12+
client: {
13+
port: 3002
14+
}
1215
},
1316
tools: {
1417
rspack: (config, { appendPlugins }) => {

0 commit comments

Comments
 (0)