Spaces:
No application file
No application file
Update vite.config.ts
Browse files- vite.config.ts +8 -22
vite.config.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
| 1 |
-
import
|
| 2 |
-
import
|
| 3 |
-
import react from '@vitejs/plugin-react';
|
| 4 |
|
| 5 |
-
export default defineConfig(
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
},
|
| 12 |
-
plugins: [react()],
|
| 13 |
-
define: {
|
| 14 |
-
'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
|
| 15 |
-
'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY)
|
| 16 |
-
},
|
| 17 |
-
resolve: {
|
| 18 |
-
alias: {
|
| 19 |
-
'@': path.resolve(__dirname, '.'),
|
| 20 |
-
}
|
| 21 |
-
}
|
| 22 |
-
};
|
| 23 |
-
});
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
|
|
|
| 3 |
|
| 4 |
+
export default defineConfig({
|
| 5 |
+
plugins: [react()],
|
| 6 |
+
build: {
|
| 7 |
+
outDir: 'build', // Tells Vite to create a 'build' folder instead of 'dist'
|
| 8 |
+
}
|
| 9 |
+
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|