mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-01 21:35:25 +08:00
Add Windows-compatible frontend launch methods. (#55)
* Update dev-config.md 文档:增加前端对win平台启动前端的方法 * Update dev-config.md * Update dev-config.md * Update dev-config.md * Update dev-config.md * Update dev-config.md * Update dev-config.md add:Add Windows-compatible frontend launch methods. * Update dev-config.md add:Add Windows-compatible frontend launch methods.
This commit is contained in:
@@ -35,10 +35,19 @@ npm install
|
||||
|
||||
Start debugging
|
||||
|
||||
- Usage in Linux and other environments
|
||||
|
||||
```bash
|
||||
npm run dev:local
|
||||
```
|
||||
|
||||
- Usage in Windows environments
|
||||
|
||||
```bash
|
||||
npm run dev:local:win
|
||||
```
|
||||
|
||||
|
||||
:::info
|
||||
When using `dev:local` to start locally, the environment variable `NEXT_PUBLIC_API_BASE_URL` will be automatically used by the frontend to ensure that the frontend can access the `5300` port of the locally running backend. If you need to modify the backend address or port used, please modify the `scripts` in the `web/package.json` file.
|
||||
|
||||
@@ -47,4 +56,4 @@ In production environments, the frontend will be precompiled into static files a
|
||||
|
||||
## API Documentation
|
||||
|
||||
We will write API documentation in APIFox before developing each interface. Please refer to [API Documentation(Chinese)](https://ok52vhsenr.apifox.cn/).
|
||||
We will write API documentation in APIFox before developing each interface. Please refer to [API Documentation(Chinese)](https://ok52vhsenr.apifox.cn/).
|
||||
|
||||
Reference in New Issue
Block a user