@lark-apaas/fullstack-rspack-preset 1.0.13-alpha.proxy.2 → 1.0.13-alpha.proxy.4

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.
@@ -7,7 +7,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.registerSnapDomProxyMiddleware = registerSnapDomProxyMiddleware;
8
8
  const path_1 = __importDefault(require("path"));
9
9
  function registerSnapDomProxyMiddleware(serverApp, options = {}) {
10
- const { proxyUrl = '/snapdom-proxy', baseUrl = '/' } = options;
10
+ // `/dev`前缀保证请求不会被拦截
11
+ const { proxyUrl = '/dev/snapdom-proxy', baseUrl = '/' } = options;
11
12
  const targetUrl = path_1.default.join(baseUrl, proxyUrl);
12
13
  // req: import('express').Request
13
14
  // res: import('express').Response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.13-alpha.proxy.2",
3
+ "version": "1.0.13-alpha.proxy.4",
4
4
  "files": [
5
5
  "lib",
6
6
  "patches",