修正环境设置
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: {
|
runtimeConfig: {
|
||||||
baseUrl: '', public: {
|
baseUrl: '', public: {
|
||||||
apiBase: '/Api', baseUrl: process.env.API_SERVER
|
apiBase: '/Api', baseUrl: process.env.NUXT_API_URL
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
googleFonts: {
|
googleFonts: {
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build --dotenv .env.production",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev --dotenv .env.development",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
"preview": "nuxt preview",
|
"preview": "nuxt preview",
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "nuxt prepare",
|
||||||
|
|
Loading…
Reference in New Issue