Spaces:
Configuration error
Configuration error
Download vite.config.ts from caustino/interactive: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/caustino/interactive/resolve/main/vite.config.ts
- Command line
-
hf download hf://spaces/caustino/interactive/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/caustino/interactive/resolve/main/vite.config.ts
442 Bytes
| import path from 'path'; | |
| import { defineConfig, loadEnv } from 'vite'; | |
| export default defineConfig(({ mode }) => { | |
| const env = loadEnv(mode, '.', ''); | |
| return { | |
| define: { | |
| 'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY), | |
| 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY) | |
| }, | |
| resolve: { | |
| alias: { | |
| '@': path.resolve(__dirname, '.'), | |
| } | |
| } | |
| }; | |
| }); | |