Files
ruoyi-vue/创建环境变量文件.bat
2025-11-05 13:27:52 +08:00

21 lines
648 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo 正在创建环境变量配置文件...
echo # 开发环境配置 > .env.development
echo # 开发环境使用代理路径通过vue.config.js的devServer代理到后端 >> .env.development
echo VUE_APP_BASE_API=/dev-api >> .env.development
echo # 生产环境配置 > .env.production
echo # 生产环境使用相对路径通过nginx代理到后端 >> .env.production
echo VUE_APP_BASE_API=/dev-api >> .env.production
echo.
echo 环境变量文件创建完成!
echo .env.development - 开发环境配置
echo .env.production - 生产环境配置
echo.
echo 请重新打包项目npm run build:prod
pause