prithivMLmods commited on
Commit
d014a11
·
verified ·
1 Parent(s): 5061c8f
Files changed (1) hide show
  1. vite.config.ts +13 -20
vite.config.ts CHANGED
@@ -1,23 +1,16 @@
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 path from 'path';
2
+ import { defineConfig } from 'vite';
3
  import react from '@vitejs/plugin-react';
4
 
5
+ export default defineConfig({
6
+ server: {
7
+ port: 7860,
8
+ host: '0.0.0.0',
9
+ },
10
+ plugins: [react()],
11
+ resolve: {
12
+ alias: {
13
+ '@': path.resolve(__dirname, '.'),
14
+ }
15
+ }
16
+ });