Initial commit — Electron + React frontend, Express/Docker backend, members & project management
This commit is contained in:
15
frontend/vite.config.js
Normal file
15
frontend/vite.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// Use relative base so built assets load correctly from filesystem/Electron
|
||||
// Ports are defined in the root .env file (PORT_FRONTEND_DEV, PORT_BACKEND)
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, '../', '')
|
||||
return {
|
||||
base: './',
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: parseInt(env.PORT_FRONTEND_DEV) || 5173,
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user