当前位置:网站首页>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.
边栏推荐
- The general SQL injection flow (sample attached)
- kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?
- 跨境电商看不到另一面:商家刷单、平台封号、黑灰产牟利
- STM8S105k4t6c---------------Light up LED
- KingbaseES数据库启动失败,报“内存段超过可用内存”
- 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
- 【学习笔记之菜Dog学C】动态内存管理
- There are n steps in total, and you can go up to 1 or 2 steps each time. How many ways are there?
- Returns the maximum number of palindromes in a string
- MRS: Alluxio的使用介绍
猜你喜欢

云开发旅游打卡广场微信小程序源码(含视频教程)

Flink原理流程图简单记录

小程序:扫码打开参数解析

6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch

Polygon zkEVM network node

全网没有之一的JMeter 接口测试流程详解

Deep Learning (3) Classification Theory Part

一文看懂推荐系统:召回05:矩阵补充、最近邻查找,工业界基本不用了,但是有助于理解双塔模型

千兆2光8电管理型工业以太网交换机WEB管理X-Ring一键环网交换机

数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
随机推荐
Basic form validation process
4路双向HDMI综合业务高清视频光端机8路HDMI高清视频光端机
Returns the maximum number of palindromes in a string
sqoop ETL工具
pytorch应用于MNIST手写字体识别
2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
【医保科普】维护医保基金安全,我们可以这样做
QNX Hypervisor] 10.2 vdev 8259 2.2 user manual
【项目实现】Boost搜索引擎
STM8S105K4T6------Serial port sending and receiving
力扣(LeetCode)215. 数组中的第K个最大元素(2022.08.03)
yum 仅下载包
2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch
【翻译】Terraform和Kubernetes的交集
y86.第四章 Prometheus大厂监控体系及实战 -- prometheus存储(十七)
6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
The keytool command
Zabbix设置邮件告警+企业微信告警
sqoop ETL tool
sudo 权限控制,简易