当前位置:网站首页>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.
边栏推荐
- Big guys, it takes a long time to read mysql3 million single tables, what parameters can be discounted, or is there any way to hurry up
- MCU C language -> usage, and meaning
- QNX Hypervisor 2.2 user manual] 10.1 gm vdev options
- C语言--环形缓存区
- Deep Learning (3) Classification Theory Part
- Power button (LeetCode) 215. The first K largest elements in the array (2022.08.03)
- 2022焊工(初级)上岗证题目模拟考试平台操作
- Pine脚本 | 如何显示和排版绘图开关?
- kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?
- JVM内存和垃圾回收-07.堆
猜你喜欢

织梦响应式酒店民宿住宿类网站织梦模板(自适应手机端)

y86.第四章 Prometheus大厂监控体系及实战 -- prometheus存储(十七)

Mini program + new retail, play the new way of playing in the industry!

Sfdp 超级表单开发平台 V6.0.5 正式发布

LeetCode每日一题(2285. Maximum Total Importance of Roads)

脚手架内容详解分析
![[Medical Insurance Science] To maintain the safety of medical insurance funds, we can do this](/img/d0/6ac51d0d51c907ed0e1578e038fffd.jpg)
[Medical Insurance Science] To maintain the safety of medical insurance funds, we can do this

In the season of going overseas, the localization of Internet tips for going overseas
The general SQL injection flow (sample attached)

Deep Learning (3) Classification Theory Part
随机推荐
Zabbix设置邮件告警+企业微信告警
在更一般意义上验算移位距离和假设
flinkcdc 消费 mysql binlog 没有 sqltype=delete 的数据是什么原
2022焊工(初级)上岗证题目模拟考试平台操作
STM8S105k4t6c--------------点亮LED
异步编程解决方案 Generator生成器函数、iterator迭代器、async/await、Promise
Flink原理流程图简单记录
Why use Selenium for automated testing
【翻译】Terraform和Kubernetes的交集
自制蓝牙手机app控制stm8/stm32/C51板载LED
【学习笔记之菜Dog学C】动态内存管理
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
STM8S105K4T6------Serial port sending and receiving
Simple record of Flink principle flow chart
千兆2光8电管理型工业以太网交换机WEB管理X-Ring一键环网交换机
查看mysql死锁语法
【观察】超聚变:首提“算网九阶”评估模型,共建开放繁荣的算力网络
Mockito单元测试
力扣(LeetCode)215. 数组中的第K个最大元素(2022.08.03)
三分建设,七分管理!产品、系统、组织三管齐下节能降耗