diff --git a/.vs/ProjectEvaluation/loongpanel-asp.metadata.v8.bin b/.vs/ProjectEvaluation/loongpanel-asp.metadata.v8.bin new file mode 100644 index 0000000..9c80512 Binary files /dev/null and b/.vs/ProjectEvaluation/loongpanel-asp.metadata.v8.bin differ diff --git a/.vs/ProjectEvaluation/loongpanel-asp.projects.v8.bin b/.vs/ProjectEvaluation/loongpanel-asp.projects.v8.bin new file mode 100644 index 0000000..eee8ff0 Binary files /dev/null and b/.vs/ProjectEvaluation/loongpanel-asp.projects.v8.bin differ diff --git a/.vs/ProjectEvaluation/loongpanel-asp.strings.v8.bin b/.vs/ProjectEvaluation/loongpanel-asp.strings.v8.bin new file mode 100644 index 0000000..788144e Binary files /dev/null and b/.vs/ProjectEvaluation/loongpanel-asp.strings.v8.bin differ diff --git a/web/.env b/web/.env deleted file mode 100755 index b5e01f2..0000000 --- a/web/.env +++ /dev/null @@ -1 +0,0 @@ -API_SERVER="http://127.0.0.1:5253" \ No newline at end of file diff --git a/web/.env.development b/web/.env.development new file mode 100644 index 0000000..d561ac2 --- /dev/null +++ b/web/.env.development @@ -0,0 +1 @@ +NUXT_API_URL="http://127.0.0.1:5253" \ No newline at end of file diff --git a/web/.env.production b/web/.env.production new file mode 100644 index 0000000..75901bd --- /dev/null +++ b/web/.env.production @@ -0,0 +1 @@ +NUXT_API_URL="http://localhost:3000" \ No newline at end of file diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts index 64e6e88..3a39ce9 100755 --- a/web/nuxt.config.ts +++ b/web/nuxt.config.ts @@ -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: { diff --git a/web/package.json b/web/package.json index 04ab6e1..7cd743d 100755 --- a/web/package.json +++ b/web/package.json @@ -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",