修正环境设置
This commit is contained in:
parent
e4eb2e8e20
commit
ee9f6d392a
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
NUXT_API_URL="http://127.0.0.1:5253"
|
|
@ -0,0 +1 @@
|
|||
NUXT_API_URL="http://localhost:3000"
|
|
@ -42,7 +42,7 @@ export default defineNuxtConfig({
|
|||
],
|
||||
runtimeConfig: {
|
||||
baseUrl: '', public: {
|
||||
apiBase: '/Api', baseUrl: process.env.API_SERVER
|
||||
apiBase: '/Api', baseUrl: process.env.NUXT_API_URL
|
||||
}
|
||||
},
|
||||
googleFonts: {
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
"build": "nuxt build --dotenv .env.production",
|
||||
"dev": "nuxt dev --dotenv .env.development",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
|
|
Loading…
Reference in New Issue