Spaces:
Paused
Paused
Download chatkit/frontend/vite.config.ts from taboola-cz/ClassLens-dev: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/taboola-cz/ClassLens-dev/resolve/main/chatkit/frontend/vite.config.ts
- Command line
-
hf download hf://spaces/taboola-cz/ClassLens-dev/chatkit/frontend/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/spaces/taboola-cz/ClassLens-dev/resolve/main/chatkit/frontend/vite.config.ts
449 Bytes
| import * as path from "node:path"; | |
| import { defineConfig } from "vite"; | |
| import react from "@vitejs/plugin-react-swc"; | |
| const backendTarget = process.env.BACKEND_URL ?? "http://127.0.0.1:8000"; | |
| export default defineConfig({ | |
| envDir: path.resolve(__dirname, ".."), | |
| plugins: [react()], | |
| server: { | |
| port: 3003, | |
| host: "0.0.0.0", | |
| proxy: { | |
| "/api": { | |
| target: backendTarget, | |
| changeOrigin: true, | |
| }, | |
| }, | |
| }, | |
| }); | |