Skip to content

Commit

Permalink
fix: add dev.client.port to support hmr (#4287)
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 authored Oct 8, 2024
1 parent 7b5f961 commit 2b54e15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion react-manifest-example/remote1/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default defineConfig({
},
dev: {
// It is necessary to configure assetPrefix, and in the production environment, you need to configure output.assetPrefix
assetPrefix: 'http://localhost:3001',
assetPrefix: true,
client: {
port: 3001
}
},
tools: {
rspack: (config, { appendPlugins }) => {
Expand Down
5 changes: 4 additions & 1 deletion react-manifest-example/remote2/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default defineConfig({
},
dev: {
// It is necessary to configure assetPrefix, and in the production environment, you need to configure output.assetPrefix
assetPrefix: 'http://localhost:3002',
assetPrefix: true,
client: {
port: 3002
}
},
tools: {
rspack: (config, { appendPlugins }) => {
Expand Down

0 comments on commit 2b54e15

Please sign in to comment.