当前位置:网站首页>base address: environment variable
base address: environment variable
2022-08-04 03:04:00 【I must win this time】
One. Function
Environment variables: set different variables for different environments
2. Development environment
development
Process:
1. Create a file in the root directory.env.development
2. Set the variables of the corresponding environment in the file
Interface base address; VUE_APP_begins
VUE_APP_URL='Development environment interface base address'
Three. Production environment
production
1. Create a file in the root directory. env.production
2. Set the variables of the corresponding environment in the file
Interface base address; VUE_APP_begins
VUE_APP_URL='production environment interface base address'
Four. Use
process.env.VUE_APP_URL can get the defined value
npm run server development: process.env.VUE_APP_URL===aaa
npm run build production:process.env.VUE_APP_URL===bbb
V. Practical application
In the development environment:
Let's see if we can identify:
Identified.
This allows us to determine a base address in both production and development environments.
边栏推荐
- typescript type 和 interface 的区别
- Ant - the design of the Select component using a custom icon (suffixIcon attribute) suffixes, click on the custom ICONS have no reaction, will not display the drop-down menu
- 倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
- MRS: Alluxio的使用介绍
- 2022焊工(初级)上岗证题目模拟考试平台操作
- 【观察】超聚变:首提“算网九阶”评估模型,共建开放繁荣的算力网络
- MySQL 查询练习(1)
- 逻辑漏洞----其他类型
- 基地址:环境变量
- C language -- ring buffer
猜你喜欢
【Playwright测试教程】5分钟上手
There are n steps in total, and you can go up to 1 or 2 steps each time. How many ways are there?
【医保科普】维护医保基金安全,我们可以这样做
SQL注入中 #、 --+、 --%20、 %23是什么意思?
sqoop ETL工具
一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入
Simple record of Flink principle flow chart
6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
出海季,互联网出海锦囊之本地化
Detailed analysis of scaffolding content
随机推荐
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
2022G1工业锅炉司炉考试练习题及模拟考试
LeetCode每日一题(2285. Maximum Total Importance of Roads)
Power button (LeetCode) 215. The first K largest elements in the array (2022.08.03)
STM8S105K4T6------Serial port sending and receiving
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?
Returns the maximum number of palindromes in a string
STM8S项目创建(STVD创建)---使用 COSMIC 创建 C 语言项目
《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
Polygon zkEVM网络节点
STM8S105k4t6c---------------Light up LED
flinkcdc 消费 mysql binlog 没有 sqltype=delete 的数据是什么原
共n级台阶,每次可以上1级或2级台阶,有多少种上法?
C language -- ring buffer
融云「音视频架构实践」技术专场【内含完整PPT】
SQL注入中 #、 --+、 --%20、 %23是什么意思?
sql注入一般流程(附例题)
How to read the resources files in the directory path?
Development of Taurus. MVC WebAPI introductory tutorial 1: download environment configuration and operation framework (including series directory).