ShiftSync/web/vite.config.js

25 lines
529 B
JavaScript
Raw Normal View History

2025-05-20 16:33:08 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
2025-05-20 16:28:48 +00:00
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
2025-06-11 15:11:47 +00:00
server:{
2025-06-11 15:19:01 +00:00
host: true,
2025-06-11 16:19:34 +00:00
allowedHosts: ['shift.code-catalyst.com'],
2025-06-11 16:15:28 +00:00
cors: true,
hmr: {
protocol: 'wss',
host: 'shift.code-catalyst.com',
clientPort: 443,
2025-06-11 16:19:34 +00:00
}
2025-06-11 15:11:47 +00:00
},
2025-05-20 16:33:08 +00:00
resolve: {
alias: {
'@src': path.resolve(__dirname, 'src'),
2025-06-05 04:02:22 +00:00
'@components': path.resolve(__dirname, 'components')
2025-05-20 16:33:08 +00:00
},
},
});