@lark-apaas/fullstack-rspack-preset 1.0.50-alpha.2 → 1.0.50-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/preset.js +6 -0
  2. package/package.json +1 -1
package/lib/preset.js CHANGED
@@ -377,6 +377,12 @@ function createRecommendRspackConfig(options) {
377
377
  changeOrigin: true,
378
378
  onError: sendBackendUnavailable502,
379
379
  },
380
+ {
381
+ context: [`${clientBasePath}/openapi`],
382
+ target: `http://localhost:${serverPort}`,
383
+ changeOrigin: true,
384
+ onError: sendBackendUnavailable502,
385
+ },
380
386
  {
381
387
  context: [`${clientBasePath}/__innerapi__`],
382
388
  target: `http://localhost:${serverPort}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.50-alpha.2",
3
+ "version": "1.0.50-alpha.3",
4
4
  "files": [
5
5
  "lib",
6
6
  "patches",