stuff changed:
- ui has been made 'kinda better' (after making it worse for a while lol - ESP rfid readers are now supported [ill upload the code for them in another repo later] - admin system has been secured a bit better and seems to be working well
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
const hmrConfig = process.env.VITE_HMR_CLIENT_PORT || process.env.VITE_HMR_PROTOCOL || process.env.VITE_HMR_HOST
|
||||
? {
|
||||
clientPort: process.env.VITE_HMR_CLIENT_PORT ? Number(process.env.VITE_HMR_CLIENT_PORT) : undefined,
|
||||
protocol: process.env.VITE_HMR_PROTOCOL,
|
||||
host: process.env.VITE_HMR_HOST
|
||||
}
|
||||
: undefined
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
@@ -11,9 +19,7 @@ export default defineConfig({
|
||||
watch: {
|
||||
usePolling: true
|
||||
},
|
||||
hmr: {
|
||||
clientPort: 8050
|
||||
},
|
||||
hmr: hmrConfig,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://backend:8000',
|
||||
|
||||
Reference in New Issue
Block a user