- Added city, state, and country optional fields to Complex model - Updated onboarding to include optional location fields - Created new settings page with sidebar navigation (Datos del Complejo, Canchas) - Replaced ESLint with Biome for frontend and backend linting - Added parallel dev script with concurrently - Migrated register-routes to use direct app.route() pattern
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import path from 'node:path';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { TanStackRouterVite } from '@tanstack/router-plugin/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [TanStackRouterVite(), react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
build: {
|
|
rolldownOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes('node_modules/react') || id.includes('node_modules/react-dom')) {
|
|
return 'react-vendor';
|
|
}
|
|
if (id.includes('node_modules/@tanstack/react-router')) {
|
|
return 'router-vendor';
|
|
}
|
|
if (id.includes('node_modules/@supabase/supabase-js')) {
|
|
return 'supabase-vendor';
|
|
}
|
|
if (id.includes('node_modules/radix-ui') || id.includes('node_modules/lucide-react')) {
|
|
return 'ui-vendor';
|
|
}
|
|
if (
|
|
id.includes('node_modules/react-hook-form') ||
|
|
id.includes('node_modules/@hookform/resolvers') ||
|
|
id.includes('node_modules/zod')
|
|
) {
|
|
return 'form-vendor';
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|