Files
trainingstagebuch/frontend/vite.config.js
Torsten Schulz (local) bc9e7cfe3c
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 56s
feat: add tournament suggestions job and notification system
- Implemented a scheduled job for fetching tournament suggestions in the scheduler service.
- Added a new service for handling tournament suggestions, including fetching and updating suggestions.
- Created notification system with models, controllers, and services for managing user notifications.
- Introduced a notification bell component in the frontend to display unread notifications.
- Added a notifications view for users to see all notifications and mark them as read.
- Updated API client and socket service to handle notifications and authentication.
- Created database migrations for notifications and tournament suggestions.
2026-08-14 11:14:07 +02:00

60 lines
1.4 KiB
JavaScript
Executable File

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
mode: 'development',
build: {
chunkSizeWarningLimit: 700,
rollupOptions: {
output: {
manualChunks(id) {
if (!id.includes('node_modules')) {
return;
}
if (id.includes('vue-router')) return 'router';
if (id.includes('vue-i18n')) return 'i18n';
if (id.includes('vuex')) return 'store';
if (id.includes('socket.io-client')) return 'socket';
if (id.includes('html2canvas')) return 'html2canvas';
if (id.includes('jspdf')) return 'jspdf';
if (id.includes('sortablejs')) return 'sortable';
if (id.includes('crypto-js')) return 'crypto';
if (id.includes('axios')) return 'http';
return 'vendor';
}
}
}
},
resolve: {
alias: {
'@': '/src'
}
},
server: {
host: true,
allowedHosts: ['trainer.localhost', 'club.localhost', 'player.localhost'],
port: 5000,
watch: {
usePolling: true,
},
hmr: {
protocol: 'ws',
port: 5000,
},
proxy: {
'/api': {
target: 'http://localhost:3005',
changeOrigin: true,
},
'/socket.io': {
target: 'http://localhost:3005',
changeOrigin: true,
ws: true,
},
},
},
});