Skip to content

Commit 54e95e1

Browse files
amarachiugwuneighborhood999
authored andcommitted
Fix broken Next.js base path configuration link (#7419)
1 parent 16e90b8 commit 54e95e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/add-react-to-an-existing-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title: 將 React 加入到一個現有的專案
2121
以下是我們推薦的設定方式:
2222

2323
1. 使用其中一個[基於 React 的框架]((/learn/start-a-new-react-project))**建構你的應用程式中的 React 部分**
24-
2. 在你的框架設定中將 **`/some-app` 指定為 *基本路徑***(這裡是如何設定:[Next.js](https://nextjs.org/docs/api-reference/next.config.js/basepath)[Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/))。
24+
2. 在你的框架設定中將 **`/some-app` 指定為 *基本路徑***(這裡是如何設定:[Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath)[Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/))。
2525
3. **設定你的伺服器或代理**,讓所有在 `/some-app/` 下的請求都由 React 應用程式處理。
2626

2727
這可以確保你的應用程式中 React 部分能夠[受益於這些框架所內建的最佳實踐](/learn/start-a-new-react-project#can-i-use-react-without-a-framework)

0 commit comments

Comments
 (0)