MG b0ead3f8c9 no message 1 gadu atpakaļ
..
.vscode af1c66a46c init 1 gadu atpakaļ
build af1c66a46c init 1 gadu atpakaļ
public af1c66a46c init 1 gadu atpakaļ
src b0ead3f8c9 no message 1 gadu atpakaļ
.dockerignore af1c66a46c init 1 gadu atpakaļ
.editorconfig af1c66a46c init 1 gadu atpakaļ
.eslintignore af1c66a46c init 1 gadu atpakaļ
.eslintrc.js af1c66a46c init 1 gadu atpakaļ
.gitattributes af1c66a46c init 1 gadu atpakaļ
.gitignore af1c66a46c init 1 gadu atpakaļ
.prettierrc af1c66a46c init 1 gadu atpakaļ
Dockerfile af1c66a46c init 1 gadu atpakaļ
LICENSE af1c66a46c init 1 gadu atpakaļ
README.md af1c66a46c init 1 gadu atpakaļ
dist.zip b0ead3f8c9 no message 1 gadu atpakaļ
docker-compose.yml af1c66a46c init 1 gadu atpakaļ
index.html af1c66a46c init 1 gadu atpakaļ
nginx.conf af1c66a46c init 1 gadu atpakaļ
package-lock.json af1c66a46c init 1 gadu atpakaļ
package.json af1c66a46c init 1 gadu atpakaļ
stats.html b0ead3f8c9 no message 1 gadu atpakaļ
tsconfig.json af1c66a46c init 1 gadu atpakaļ
vite.config.ts af1c66a46c init 1 gadu atpakaļ
yarn.lock af1c66a46c init 1 gadu atpakaļ

README.md

修改接口config文件

src/cool/config
将proxy中的端口改成接口服务的端口
将prod中的baseUrl改成本项目的(这个是发布在单服务器多服务情况下,区分接口服务的)
将proxy中的path.replace(/^\/prod/, "/lhyt-api"),lhyt-api改成baseUrl的名称

安装项目依赖

推荐使用 yarn

yarn

运行应用程序

安装过程完成后,运行以下命令启动服务。您可以在浏览器中预览网站 http://localhost:9000

yarn dev