Skip to content

Commit d80e416

Browse files
authored
docs: update rsbuild link to v2 (web-infra-dev#8337)
1 parent b56fb4f commit d80e416

42 files changed

Lines changed: 104 additions & 104 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/document/docs/en/apis/app/commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Options:
150150

151151
## modern inspect
152152

153-
The `modern inspect` command is used to view the Modern.js config, [Rsbuild config](https://rsbuild.rs/config/index) and Rspack config of the project.
153+
The `modern inspect` command is used to view the Modern.js config, [Rsbuild config](https://v2.rsbuild.dev/config/index) and Rspack config of the project.
154154

155155
```bash
156156
Usage: modern inspect [options]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[Rsbuild](https://rsbuild.rs/) is an Rspack-based build tool for the web. The main goal of Rsbuild is to provide out-of-the-box build capabilities for Rspack users, allowing developers to start a web project with zero configuration.
1+
[Rsbuild](https://v2.rsbuild.dev/) is an Rspack-based build tool for the web. The main goal of Rsbuild is to provide out-of-the-box build capabilities for Rspack users, allowing developers to start a web project with zero configuration.
22

33
Rsbuild integrates high-performance Rust-based tools from the community, including Rspack and SWC, to provide first-class build speed and development experience.

packages/document/docs/en/configure/app/builder-plugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 21
99

1010
Used to configure the Rsbuild plugin.
1111

12-
Rsbuild is the build tool of Modern.js, please read [Build Engine](/guides/concept/builder) for background. If you want to know how to write Rsbuild plugins, you can refer to [Rsbuild - Plugin System](https://rsbuild.rs/plugins/dev/index).
12+
Rsbuild is the build tool of Modern.js, please read [Build Engine](/guides/concept/builder) for background. If you want to know how to write Rsbuild plugins, you can refer to [Rsbuild - Plugin System](https://v2.rsbuild.dev/plugins/dev/index).
1313

1414
## Precautions
1515

packages/document/docs/en/configure/app/dev/server.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
};
2929
```
3030

31-
For more details, please refer to the [Rsbuild - server.compress](https://rsbuild.rs/config/server/compress) documentation.
31+
For more details, please refer to the [Rsbuild - server.compress](https://v2.rsbuild.dev/config/server/compress) documentation.
3232

3333
### headers
3434

@@ -49,7 +49,7 @@ export default {
4949
};
5050
```
5151

52-
For more details, please refer to the [Rsbuild - server.headers](https://rsbuild.rs/config/server/headers) documentation.
52+
For more details, please refer to the [Rsbuild - server.headers](https://v2.rsbuild.dev/config/server/headers) documentation.
5353

5454
### historyApiFallback
5555

@@ -68,7 +68,7 @@ export default {
6868
};
6969
```
7070

71-
For more configuration options, please refer to the [Rsbuild - server.historyApiFallback](https://rsbuild.rs/config/server/history-api-fallback) documentation.
71+
For more configuration options, please refer to the [Rsbuild - server.historyApiFallback](https://v2.rsbuild.dev/config/server/history-api-fallback) documentation.
7272

7373
### watch
7474

@@ -77,7 +77,7 @@ For more configuration options, please refer to the [Rsbuild - server.historyApi
7777

7878
Whether to watch files change in directories such as `mock/`, `server/`, `api/`.
7979

80-
For more details, please refer to the [Rsbuild - dev.watchFiles](https://rsbuild.rs/config/dev/watch-files) documentation.
80+
For more details, please refer to the [Rsbuild - dev.watchFiles](https://v2.rsbuild.dev/config/dev/watch-files) documentation.
8181

8282
### cors
8383

@@ -100,7 +100,7 @@ const defaultOptions = {
100100
};
101101
```
102102

103-
For more configuration options and detailed usage, please refer to the [Rsbuild - server.cors](https://rsbuild.rs/config/server/cors) documentation.
103+
For more configuration options and detailed usage, please refer to the [Rsbuild - server.cors](https://v2.rsbuild.dev/config/server/cors) documentation.
104104

105105
### proxy
106106

@@ -124,5 +124,5 @@ export default {
124124
```
125125

126126
:::tip
127-
This option is the same as Rsbuild's `server.proxy` option, see [Rsbuild - server.proxy](https://v2.rsbuild.rs/config/server/proxy) for detailed usage.
127+
This option is the same as Rsbuild's `server.proxy` option, see [Rsbuild - server.proxy](https://v2.rsbuild.dev/config/server/proxy) for detailed usage.
128128
:::

packages/document/docs/en/configure/app/resolve/alias-strategy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: aliasStrategy
77
- **Type:** `'prefer-tsconfig' | 'prefer-alias'`
88
- **Default:** `'prefer-tsconfig'`
99

10-
Set the strategy for path alias resolution, to control the priority relationship between the paths option in `tsconfig.json` and the [resolve.alias](https://rsbuild.rs/config/resolve/alias) option of Rsbuild.
10+
Set the strategy for path alias resolution, to control the priority relationship between the paths option in `tsconfig.json` and the [resolve.alias](https://v2.rsbuild.dev/config/resolve/alias) option of Rsbuild.
1111

1212
import RsbuildConfig from '@site-docs/components/rsbuild-config-tooltip';
1313

packages/document/docs/en/configure/app/resolve/dedupe.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: dedupe
66

77
- **Type:** `string[]`
88

9-
Force Rsbuild to resolve the specified packages from project root, which is useful for deduplicating packages and reducing the bundle size. same as the [resolve.dedupe](https://rsbuild.rs/config/resolve/dedupe) config of Rsbuild.
9+
Force Rsbuild to resolve the specified packages from project root, which is useful for deduplicating packages and reducing the bundle size. same as the [resolve.dedupe](https://v2.rsbuild.dev/config/resolve/dedupe) config of Rsbuild.
1010

1111
import RsbuildConfig from '@site-docs-en/components/rsbuild-config-tooltip';
1212

packages/document/docs/en/configure/app/security/sri.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type SriOptions = {
1818
Adding an `integrity` attribute to `<script>` and `<link rel="stylesheet">` tags introduced by HTML allows the browser to verify the integrity of the introduced resource, thus preventing tampering with the downloaded resource.
1919

2020
:::info
21-
For a specific introduction to SRI, you can refer to [Rsbuild security.sri](https://rsbuild.rs/zh/config/security/sri).
21+
For a specific introduction to SRI, you can refer to [Rsbuild security.sri](https://v2.rsbuild.dev/zh/config/security/sri).
2222

2323
This configuration type is not completely consistent with Rsbuild and will be automatically converted during the build process.
2424
:::

packages/document/docs/en/configure/app/source/decorators.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const defaultDecorators = {
2323
Used to configure the decorators syntax.
2424

2525
:::warning
26-
The usage of this configuration item is exactly the same as that of Rsbuild, but the default value is different. For detailed information, please refer to [Rsbuild - source.decorators](https://rsbuild.rs/config/source/decorators).
26+
The usage of this configuration item is exactly the same as that of Rsbuild, but the default value is different. For detailed information, please refer to [Rsbuild - source.decorators](https://v2.rsbuild.dev/config/source/decorators).
2727
:::
2828

2929
We found that most projects still use the `legacy` version of the decorator syntax, so the default value is `legacy`.

packages/document/docs/en/configure/app/tools/bundler-chain.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Configurations modified via bundler chain will work on Rspack builds.
2727

2828
> `tools.bundlerChain` is executed earlier than tools.rspack and thus will be overridden by changes in tools.rspack.
2929
30-
For more information, please refer to [Rsbuild#tools.bundlerChain](https://rsbuild.rs/config/tools/bundler-chain).
30+
For more information, please refer to [Rsbuild#tools.bundlerChain](https://v2.rsbuild.dev/config/tools/bundler-chain).

packages/document/docs/en/configure/app/tools/swc.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
});
3636
```
3737

38-
For more usage, please refer to [Rsbuild - tools.swc](https://rsbuild.rs/config/tools/swc).
38+
For more usage, please refer to [Rsbuild - tools.swc](https://v2.rsbuild.dev/config/tools/swc).
3939

4040
### Register SWC Plugin
4141

@@ -66,4 +66,4 @@ This means that you must to choose an SWC plugin that matches the current versio
6666

6767
If you encounter the above issues, a common solution is to upgrade both the Modern.js and SWC plugins to the latest versions.
6868

69-
For details, please refer to [Rsbuild - SWC Plugin Version](https://rsbuild.rs/guide/basic/configure-swc#swc-plugin-version).
69+
For details, please refer to [Rsbuild - SWC Plugin Version](https://v2.rsbuild.dev/guide/configuration/swc#swc-plugin-version).

0 commit comments

Comments
 (0)