Frontend: - Replace Next.js with Vite + React + TypeScript - Add new component architecture (app-shell, sidebar, dashboard modules) - Implement product modules: FRAME, safety protocols, walkthrough checkin, campus/staff attendance, personality quiz, sign language, classroom timer - Add shadcn/ui component library with Tailwind CSS - Remove legacy generated components, stores, and pages Backend: - Add product migrations: frame_entries, user_progress, safety_quiz_results, walkthrough_checkins, communication_events, personality_quiz_results, campus_attendance_config/summaries, staff_attendance_records, content_catalog - Add corresponding models, services, and routes - Implement cookie-based auth with refresh token rotation - Add content catalog seeder with product content - Migrate to ESLint flat config - Switch from yarn to npm Infrastructure: - Update .gitignore for new tooling - Add project documentation (CLAUDE.md, docs/) - Remove deprecated config files and yarn.lock Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
66 lines
1.4 KiB
TypeScript
66 lines
1.4 KiB
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => ({
|
|
server: {
|
|
host: "::",
|
|
port: 3000,
|
|
},
|
|
plugins: [
|
|
react()
|
|
].filter(Boolean),
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (!id.includes("node_modules")) {
|
|
return undefined;
|
|
}
|
|
|
|
if (id.includes("/react/") || id.includes("/react-dom/")) {
|
|
return "react";
|
|
}
|
|
|
|
if (id.includes("/react-router") || id.includes("/react-router-dom")) {
|
|
return "router";
|
|
}
|
|
|
|
if (id.includes("/@radix-ui/")) {
|
|
return "radix";
|
|
}
|
|
|
|
if (id.includes("/recharts/")) {
|
|
return "charts";
|
|
}
|
|
|
|
if (
|
|
id.includes("/react-hook-form/")
|
|
|| id.includes("/@hookform/")
|
|
|| id.includes("/zod/")
|
|
) {
|
|
return "forms";
|
|
}
|
|
|
|
if (
|
|
id.includes("/lucide-react/")
|
|
|| id.includes("/sonner/")
|
|
|| id.includes("/vaul/")
|
|
|| id.includes("/cmdk/")
|
|
) {
|
|
return "ui";
|
|
}
|
|
|
|
return "vendor";
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}));
|