mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Repo hygiene pass: - cookie.txt / cookies.txt held real session cookies and must never be committed; .gitignore now blocks them along with .env files - half a megabyte of debug screenshots, one-shot production hotfix scripts (all superseded by the automatic startup migrations), scratch files and the unused attached_assets folder (with its dangling @assets vite alias) - dead code: server/storage-old.ts (unreferenced, 167 of the project's 430 TypeScript errors) and five client pages no route ever imported (BLReconciliationNative, Avoirs_backup, TasksSimplified, TasksListSimple, TasksProductionSimple) TypeScript error count drops from 430 to 261 with no behavior change; the client build is unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FHdE9nEh8zHhQNGpCgrtYe
37 lines
900 B
TypeScript
37 lines
900 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import runtimeErrorOverlay from "@replit/vite-plugin-runtime-error-modal";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
runtimeErrorOverlay(),
|
|
...(process.env.NODE_ENV !== "production" &&
|
|
process.env.REPL_ID !== undefined
|
|
? [
|
|
await import("@replit/vite-plugin-cartographer").then((m) =>
|
|
m.cartographer(),
|
|
),
|
|
]
|
|
: []),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(import.meta.dirname, "client", "src"),
|
|
"@shared": path.resolve(import.meta.dirname, "shared"),
|
|
},
|
|
},
|
|
root: path.resolve(import.meta.dirname, "client"),
|
|
build: {
|
|
outDir: path.resolve(import.meta.dirname, "dist/public"),
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
fs: {
|
|
strict: true,
|
|
deny: ["**/.*"],
|
|
},
|
|
},
|
|
});
|