diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..5c67c68 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +# The browser calls Vite on the same origin; Vite forwards /api to this target. +VITE_API_BASE_URL=/api +VITE_DEV_API_TARGET=http://localhost:8080 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..49caac4 --- /dev/null +++ b/.env.production @@ -0,0 +1,2 @@ +# The production OpenResty site forwards /api to the Java service. +VITE_API_BASE_URL=/api diff --git a/README.md b/README.md index 33895ab..aff1afc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,181 @@ -# Vue 3 + TypeScript + Vite +# My House · 生活档案馆管理后台(Admin) -This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `