Spaces:
Paused
Paused
Download managed-chatkit/frontend/vite.config.ts from taboola-cz/ClassLens-dev: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/taboola-cz/ClassLens-dev/resolve/main/managed-chatkit/frontend/vite.config.ts
- Command line
-
hf download hf://spaces/taboola-cz/ClassLens-dev/managed-chatkit/frontend/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/taboola-cz/ClassLens-dev/resolve/main/managed-chatkit/frontend/vite.config.ts
505 Bytes
| import path from "node:path"; | |
| import react from "@vitejs/plugin-react-swc"; | |
| import { defineConfig } from "vite"; | |
| const apiTarget = process.env.VITE_API_URL ?? "http://127.0.0.1:8000"; | |
| export default defineConfig({ | |
| // Allow env files to live one level above the frontend directory | |
| envDir: path.resolve(__dirname, ".."), | |
| plugins: [react()], | |
| server: { | |
| port: 3000, | |
| host: "0.0.0.0", | |
| proxy: { | |
| "/api": { | |
| target: apiTarget, | |
| changeOrigin: true, | |
| }, | |
| }, | |
| }, | |
| }); | |