diff --git a/website/docs/deployment/cdn.md b/website/docs/deployment/cdn.md index 9591e471..14adb771 100644 --- a/website/docs/deployment/cdn.md +++ b/website/docs/deployment/cdn.md @@ -30,3 +30,5 @@ SERVICE_URL= pnpm build Make sure the value of `SERVICE_URL` is the address of your api backend, for example: `http://127.0.0.1:11000` After compiling, you can get all the front-end files in the `tailchat/client/web/dist` directory. + +> In addition, if there is a 404 report after refreshing the page, you need to configure a configuration similar to [When hosting a static website, set the index.html file in the root directory as the default home page] diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/cdn.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/cdn.md index aea0bd04..431d649e 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/cdn.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/cdn.md @@ -30,3 +30,5 @@ SERVICE_URL= pnpm build 确保 `SERVICE_URL` 的值是后端的地址,形如: `http://127.0.0.1:11000` 编译完毕后你可以在 `tailchat/client/web/dist` 目录下获得所有的前端文件。 + +> 另外,如果出现刷新页面后报404. 需要配置类似 [静态网站托管时,把根目录下的 index.html 文件设置为默认首页] 这样的配置