Skip to content

Commit

Permalink
chore: update examples config
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Oct 16, 2024
1 parent e81cd12 commit a7d9812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/rsbuild-starter/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ export default defineConfig({
},
server: {
proxy: {
'/api': 'http://localhost:8080',
'/api/': 'http://localhost:8080',
},
},
plugins: [
pluginMockServer({
prefix: '/api-dev/',
wsPrefix: '/socket.io',
build: true,
}),
Expand Down
3 changes: 2 additions & 1 deletion examples/rspack-starter/rspack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
devServer: {
proxy: [
{
context: '/api',
context: '/api/',
target: 'http://localhost:3000',
},
],
Expand Down Expand Up @@ -64,6 +64,7 @@ export default {
},
plugins: [
new MockServerPlugin({
prefix: '/api-dev/',
wsPrefix: '/socket.io',
build: true,
}),
Expand Down

0 comments on commit a7d9812

Please sign in to comment.