Skip to content

Commit 96e1b81

Browse files
committed
Solve the Ci
Signed-off-by: Aditya Raut <araut7798@gmail.com>
1 parent b893911 commit 96e1b81

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

client/vite.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import { defineConfig, loadEnv } from 'vite'
22
import react from '@vitejs/plugin-react'
33
import tailwindcss from '@tailwindcss/vite'
44

5-
// https://vite.dev/config/
65
export default defineConfig(({ mode }) => {
7-
const env = loadEnv(mode, process.cwd(), '')
8-
const backendUrl = env.BACKEND_URL || 'http://localhost:5000'
6+
const env = loadEnv(mode, import.meta.url, '')
7+
const backendUrl = env.VITE_BACKEND_URL || 'http://localhost:5000'
98

109
return {
1110
plugins: [react(), tailwindcss()],

0 commit comments

Comments
 (0)