Fix jwt-token
This commit is contained in:
17
client/src/config/app.js
Normal file
17
client/src/config/app.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// Application configuration
|
||||
export const APP_CONFIG = {
|
||||
// Base path for the application in production
|
||||
// Can be overridden with VITE_BASE_PATH environment variable
|
||||
basePath: import.meta.env.VITE_BASE_PATH || (import.meta.env.PROD ? '/drones' : ''),
|
||||
|
||||
// API configuration
|
||||
api: {
|
||||
baseUrl: '/api' // This will be proxied by Vite in dev, and relative in production
|
||||
},
|
||||
|
||||
// Environment info
|
||||
isDevelopment: import.meta.env.DEV,
|
||||
isProduction: import.meta.env.PROD
|
||||
};
|
||||
|
||||
export default APP_CONFIG;
|
||||
Reference in New Issue
Block a user