当前位置:网站首页>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.
边栏推荐
- DIY电工维修如何拆卸和安装开关面板插座
- Simple record of Flink principle flow chart
- Pine Script | How to display and typeset a plot switch?
- Oracle迁移到瀚高之后,空值问题处理
- 【医保科普】维护医保基金安全,我们可以这样做
- 2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch
- P3384 【模板】轻重链剖分/树链剖分
- 【翻译】Terraform和Kubernetes的交集
- keytool命令
- 2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
猜你喜欢
千兆2光8电管理型工业以太网交换机WEB管理X-Ring一键环网交换机
C语言--环形缓存区
In a more general sense, calculating the displacement distance and assumptions
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
出海季,互联网出海锦囊之本地化
【项目实现】Boost搜索引擎
6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
Utilities of Ruineng Micrometer Chip RN2026
Mini program + new retail, play the new way of playing in the industry!
The general SQL injection flow (sample attached)
随机推荐
FPGA解析B码----连载3
数据湖(二十):Flink兼容Iceberg目前不足和Iceberg与Hudi对比
一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入
《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
Simple record of Flink principle flow chart
unsafe.Pointer, pointer, reference in golang
Mockito单元测试
2022广东省安全员A证第三批(主要负责人)考试题库及模拟考试
There are n steps in total, and you can go up to 1 or 2 steps each time. How many ways are there?
说说数据治理中常见的20个问题
Deep Learning (3) Classification Theory Part
出海季,互联网出海锦囊之本地化
STM8S project creation (STVD creation) --- use COSMIC to create a C language project
STM8S105k4t6c---------------Light up LED
C# 构造函数业务场景测试项目
小程序+新零售,玩转行业新玩法!
2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
2022.8.3-----leetcode.899
力扣(LeetCode)215. 数组中的第K个最大元素(2022.08.03)
uni-app 从零开始-基础模版(一)