docs: add addition note for static host config

pull/105/merge
moonrailgun 2 years ago
parent 274631829d
commit 094a9c5530

@ -30,3 +30,5 @@ SERVICE_URL=<your-api-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` 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. 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]

@ -30,3 +30,5 @@ SERVICE_URL=<your-api-url> pnpm build
确保 `SERVICE_URL` 的值是后端的地址,形如: `http://127.0.0.1:11000` 确保 `SERVICE_URL` 的值是后端的地址,形如: `http://127.0.0.1:11000`
编译完毕后你可以在 `tailchat/client/web/dist` 目录下获得所有的前端文件。 编译完毕后你可以在 `tailchat/client/web/dist` 目录下获得所有的前端文件。
> 另外如果出现刷新页面后报404. 需要配置类似 [静态网站托管时,把根目录下的 index.html 文件设置为默认首页] 这样的配置

Loading…
Cancel
Save