NeuralFalcon commited on
Commit
f370fba
·
verified ·
1 Parent(s): 1ab127f

Update vite.config.ts

Browse files
Files changed (1) hide show
  1. vite.config.ts +8 -22
vite.config.ts CHANGED
@@ -1,23 +1,9 @@
1
- import path from 'path';
2
- import { defineConfig, loadEnv } from 'vite';
3
- import react from '@vitejs/plugin-react';
4
 
5
- export default defineConfig(({ mode }) => {
6
- const env = loadEnv(mode, '.', '');
7
- return {
8
- server: {
9
- port: 3000,
10
- host: '0.0.0.0',
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
+ })