https://github.com/markthree/nitro-proxy
前端静态服务,支持自动 api 代理
https://github.com/markthree/nitro-proxy
Last synced: about 1 year ago
JSON representation
前端静态服务,支持自动 api 代理
- Host: GitHub
- URL: https://github.com/markthree/nitro-proxy
- Owner: markthree
- License: mit
- Created: 2023-08-26T09:04:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T08:15:47.000Z (about 2 years ago)
- Last Synced: 2024-04-26T18:04:30.302Z (about 2 years ago)
- Language: TypeScript
- Size: 684 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nitro-proxy
前端静态服务,支持自动 `api` 代理
## 动机
想要快速进行前端的部署,而不用花费时间进行 `api` 代理
## 使用
### 打包
在你的 `vite` 项目中
```shell
# 生成自动代理的后端服务
npx nitro-proxy
```
### 启动
打包完成后启动服务
```shell
npx nitro-proxy start
```
### 终止
终止 `nitro-proxy` 服务
```shell
npx nitro-proxy stop
```
## License
Made with [markthree](https://github.com/markthree)
Published under [MIT License](./LICENSE).