Spaces:
Configuration error
Configuration error
Create vite.config.ts
Browse files- vite.config.ts +8 -0
vite.config.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
// ต้องใช้ base: "./" เวลา deploy ไป HuggingFace
|
| 5 |
+
export default defineConfig({
|
| 6 |
+
plugins: [react()],
|
| 7 |
+
base: "./"
|
| 8 |
+
})
|