We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5fca90 commit d2cbfaaCopy full SHA for d2cbfaa
1 file changed
client/vite.config.ts
@@ -5,6 +5,13 @@ import Vue from "@vitejs/plugin-vue";
5
import { defineConfig } from "vite";
6
import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
7
8
+// Build sanity check, to ensure environment is defined;
9
+// this will not load from .env files (unless we used a different Vite syntax),
10
+// but we set VITE_APP_API_ROOT at the process level.
11
+if (!process.env.VITE_APP_API_ROOT) {
12
+ throw new Error("VITE_APP_API_ROOT must be defined.");
13
+}
14
+
15
const subpath = process.env.VITE_APP_SUBPATH || "/";
16
17
export default defineConfig({
@@ -39,12 +46,6 @@ export default defineConfig({
39
46
},
40
47
server: {
41
48
port: 8080,
42
- proxy: {
43
- "/api": {
44
- target: `http://localhost:8000`,
45
- xfwd: true,
- },
49
strictPort: true,
50
51
preview: {
0 commit comments