TrikozikGames commited on
Commit
2465aad
·
verified ·
1 Parent(s): 6068775

Update vite.config.ts

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