Use Vite dev process checking instead of NODE_ENV
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Define API URL from environment
|
||||
export const API_URL = import.meta.env.MODE === 'development'
|
||||
export const API_URL = import.meta.env.DEV
|
||||
? `${import.meta.env.VITE_API_URL_DEV}`
|
||||
: `${import.meta.env.VITE_API_URL_PROD}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user