@lynx-js/rspeedy-canary 0.11.2-canary-20250915-59a0d600 → 0.11.2-canary-20250915-88622967

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.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.11.2-canary-20250915090032-59a0d600e111d2ae5136f5ee7cd768bc38de018b
3
+ ## 0.11.2-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Support `server.proxy`. ([#1745](https://github.com/lynx-family/lynx-stack/pull/1745))
8
+
7
9
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
8
10
 
9
11
  ```js
@@ -58,7 +60,7 @@
58
60
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
59
61
 
60
62
  - Updated dependencies [[`d7c5da3`](https://github.com/lynx-family/lynx-stack/commit/d7c5da329caddfb12ed77159fb8b1b8f38717cff)]:
61
- - @lynx-js/chunk-loading-webpack-plugin@0.3.3-canary-20250915090032-59a0d600e111d2ae5136f5ee7cd768bc38de018b
63
+ - @lynx-js/chunk-loading-webpack-plugin@0.3.3-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
62
64
  - @lynx-js/cache-events-webpack-plugin@0.0.2
63
65
 
64
66
  ## 0.11.1
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ import type { DistPathConfig } from '@rsbuild/core';
21
21
  import type { InlineChunkConfig } from '@rsbuild/core';
22
22
  import { logger } from '@rsbuild/core';
23
23
  import type { PerformanceConfig } from '@rsbuild/core';
24
+ import type { ProxyConfig } from '@rsbuild/core';
24
25
  import type { RsbuildConfig } from '@rsbuild/core';
25
26
  import type { RsbuildInstance } from '@rsbuild/core';
26
27
  import { RsbuildPlugin } from '@rsbuild/core';
@@ -2698,6 +2699,24 @@ export declare interface Server {
2698
2699
  * ```
2699
2700
  */
2700
2701
  port?: number | undefined;
2702
+ /**
2703
+ * Configure proxy rules for the dev server or preview server to proxy requests to the specified service.
2704
+ *
2705
+ * @example
2706
+ *
2707
+ * ```js
2708
+ * export default {
2709
+ * server: {
2710
+ * proxy: {
2711
+ * // http://localhost:3000/api -> http://localhost:3000/api
2712
+ * // http://localhost:3000/api/foo -> http://localhost:3000/api/foo
2713
+ * '/api': 'http://localhost:3000',
2714
+ * },
2715
+ * },
2716
+ * }
2717
+ * ```
2718
+ */
2719
+ proxy?: ProxyConfig | undefined;
2701
2720
  /**
2702
2721
  * When a port is occupied, Rspeedy will automatically increment the port number until an available port is found.
2703
2722
  *
package/dist/index.js CHANGED
@@ -363,6 +363,7 @@ function toRsbuildConfig(config) {
363
363
  headers: config.server?.headers,
364
364
  host: config.server?.host,
365
365
  port: config.server?.port,
366
+ proxy: config.server?.proxy,
366
367
  strictPort: config.server?.strictPort
367
368
  },
368
369
  plugins: config.plugins,
@@ -347,6 +347,7 @@ export const __webpack_modules__ = {
347
347
  headers: config.server?.headers,
348
348
  host: config.server?.host,
349
349
  port: config.server?.port,
350
+ proxy: config.server?.proxy,
350
351
  strictPort: config.server?.strictPort
351
352
  },
352
353
  plugins: config.plugins,
@@ -339,6 +339,7 @@ export const __webpack_modules__ = {
339
339
  headers: config.server?.headers,
340
340
  host: config.server?.host,
341
341
  port: config.server?.port,
342
+ proxy: config.server?.proxy,
342
343
  strictPort: config.server?.strictPort
343
344
  },
344
345
  plugins: config.plugins,
@@ -285,6 +285,7 @@ export const __webpack_modules__ = {
285
285
  headers: config.server?.headers,
286
286
  host: config.server?.host,
287
287
  port: config.server?.port,
288
+ proxy: config.server?.proxy,
288
289
  strictPort: config.server?.strictPort
289
290
  },
290
291
  plugins: config.plugins,
@@ -287,6 +287,7 @@ export const __webpack_modules__ = {
287
287
  headers: config.server?.headers,
288
288
  host: config.server?.host,
289
289
  port: config.server?.port,
290
+ proxy: config.server?.proxy,
290
291
  strictPort: config.server?.strictPort
291
292
  },
292
293
  plugins: config.plugins,