We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc6b71d commit b8fb91eCopy full SHA for b8fb91e
vite.config.ts
@@ -9,6 +9,10 @@ export default defineConfig(({ mode }) => {
9
const env = loadEnv(mode, process.cwd(), '')
10
const buildTarget = env.VITE_BUILD_TARGET || 'web'
11
12
+ if (!env.VITE_API_URL) {
13
+ throw new Error('VITE_API_URL is not defined, create an .env file with this variable')
14
+ }
15
+
16
return {
17
plugins: [
18
ViteEjsPlugin((viteConfig) => {
0 commit comments