Skip to content

Commit

Permalink
fix: add dev.client.port to support hmr
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Oct 8, 2024
1 parent 7b5f961 commit 87afd57
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 87afd57

Please sign in to comment.