This commit is contained in:
2026-07-23 09:45:21 +00:00
parent e388dc2cf4
commit 08816695c9
405 changed files with 13784 additions and 686 deletions

View File

@@ -1,15 +1,18 @@
// @lovable.dev/vite-tanstack-config already includes the following — do NOT add them manually
// or the app will break with duplicate plugins:
// - TanStack devtools (dev-only, first), tanstackStart, viteReact, tailwindcss, tsConfigPaths,
// nitro (build-only using cloudflare as a default target), VITE_* env injection, @ path alias,
// React/TanStack dedupe, error logger plugins, and sandbox detection (port/host/strictPort).
// You can pass additional config via defineConfig({ vite: { ... }, etc... }) if needed.
import { defineConfig } from "@lovable.dev/vite-tanstack-config";
import path from "node:path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
tanstackStart: {
// Redirect TanStack Start's bundled server entry to src/server.ts (our SSR error wrapper).
// nitro/vite builds from this
server: { entry: "server" },
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
plugins: [
tanstackStart({ server: { entry: "server" } }),
react(),
tailwindcss(),
],
});