Leon4gr45 commited on
Commit
8a1cee7
·
verified ·
1 Parent(s): e5e12cb

Delete vite.config.ts with huggingface_hub

Browse files
Files changed (1) hide show
  1. vite.config.ts +0 -34
vite.config.ts DELETED
@@ -1,34 +0,0 @@
1
- import path from 'path';
2
- import { defineConfig, loadEnv } from 'vite';
3
- import react from '@vitejs/plugin-react';
4
- import { nodePolyfills } from 'vite-plugin-node-polyfills';
5
-
6
- export default defineConfig(({ mode }) => {
7
- const env = loadEnv(mode, '.', '');
8
- return {
9
- server: {
10
- port: 3000,
11
- host: '0.0.0.0',
12
- },
13
- plugins: [
14
- react(),
15
- nodePolyfills({
16
- include: ['buffer', 'process', 'util', 'stream'],
17
- globals: {
18
- Buffer: true,
19
- process: true,
20
- },
21
- }),
22
- ],
23
- define: {
24
- 'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY),
25
- 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),
26
- 'import.meta.env.VITE_HF_TOKEN': JSON.stringify(process.env.HF_TOKEN || '')
27
- },
28
- resolve: {
29
- alias: {
30
- '@': path.resolve(__dirname, '.'),
31
- }
32
- }
33
- };
34
- });