Spaces:
Sleeping
Sleeping
Update vite.config.ts
Browse files- vite.config.ts +9 -12
vite.config.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 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 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 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 |
+
});
|