Fix jwt-token

This commit is contained in:
2025-09-06 15:22:05 +02:00
parent e06c09fbaf
commit 215b06b5c1
9 changed files with 42 additions and 6 deletions

17
client/src/config/app.js Normal file
View 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;