Fix jwt-token
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// Application base path configuration
|
||||
// Can be overridden with VITE_BASE_PATH environment variable
|
||||
// This should match the base path used in nginx/reverse proxy configuration
|
||||
const BASE_PATH = process.env.VITE_BASE_PATH || (process.env.NODE_ENV === 'production' ? '/drones/' : '/')
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: process.env.NODE_ENV === 'production' ? '/drones/' : '/',
|
||||
base: BASE_PATH, // Used for asset paths and routing
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user