修改默认env
This commit is contained in:
parent
9bcfd58062
commit
c90f480fab
2
web/.env
2
web/.env
|
@ -1 +1 @@
|
|||
NUXT_API_URL="https://backend.xn--7p0a.site"
|
||||
NUXT_API_URL="127.0.0.1:5000"
|
|
@ -1 +0,0 @@
|
|||
NUXT_API_URL="http://192.168.1.22:5000"
|
|
@ -0,0 +1 @@
|
|||
NUXT_API_URL="https://backend.xn--7p0a.site"
|
|
@ -80,7 +80,7 @@ export default defineNuxtConfig({
|
|||
|
||||
runtimeConfig: {
|
||||
baseUrl: '', public: {
|
||||
apiBase: '/Api', baseUrl: process.env.NUXT_API_URL
|
||||
apiBase: '/Api', baseUrl: import.meta.env.NUXT_API_URL,
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"build:yuan": "nuxt build --dotenv .env.yuan",
|
||||
"dev": "nuxt dev --dotenv .env.development",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
|
|
Loading…
Reference in New Issue