Files
chore/frontend/vue-app/vite.config.ts
Ryan Kegel 234adbe05f
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m45s
Add TimeSelector and ScheduleModal components with tests
- Implemented TimeSelector component for selecting time with AM/PM toggle and minute/hour increment/decrement functionality.
- Created ScheduleModal component for scheduling chores with options for specific days or intervals.
- Added utility functions for scheduling logic in scheduleUtils.ts.
- Developed comprehensive tests for TimeSelector and scheduleUtils functions to ensure correct behavior.
2026-02-23 15:44:55 -05:00

34 lines
823 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
//import vueDevTools from 'vite-plugin-vue-devtools'
import fs from 'fs'
export default defineConfig({
plugins: [vue() /*vueDevTools()*/],
server: {
host: '0.0.0.0',
https: {
key: fs.readFileSync('./192.168.1.102+1-key.pem'),
cert: fs.readFileSync('./192.168.1.102+1.pem'),
},
proxy: {
'/api': {
target: 'http://192.168.1.219:5000',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/api/, ''),
},
'/events': {
target: 'http://192.168.1.219:5000',
changeOrigin: true,
secure: false,
},
},
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})