File size: 1,711 Bytes
9d3c32a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
743ae7d
 
 
9d3c32a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
import { componentTagger } from "lovable-tagger";

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
  server: {
    host: "::",
    port: 8080,
    proxy: {
      "/start-training": "http://localhost:8000",
      "/stop-training": "http://localhost:8000",
      "/training-status": "http://localhost:8000",
      "/training-logs": "http://localhost:8000",
      "/start-recording": "http://localhost:8000",
      "/stop-recording": "http://localhost:8000",
      "/recording-status": "http://localhost:8000",
      "/recording-exit-early": "http://localhost:8000",
      "/recording-rerecord-episode": "http://localhost:8000",
      "/start-calibration": "http://localhost:8000",
      "/stop-calibration": "http://localhost:8000",
      "/calibration-status": "http://localhost:8000",
      "/calibration-input": "http://localhost:8000",
      "/calibration-debug": "http://localhost:8000",
      "/calibration-configs": "http://localhost:8000",
      "/move-arm": "http://localhost:8000",
      "/stop-teleoperation": "http://localhost:8000",
      "/teleoperation-status": "http://localhost:8000",
      "/joint-positions": "http://localhost:8000",
      "/get-configs": "http://localhost:8000",
      "/health": "http://localhost:8000",
      "/ws": {
        target: "ws://localhost:8000",
        ws: true,
      },
    },
  },
  preview: {
    allowedHosts: ["jurmy24-lelab.hf.space"],
  },
  plugins: [react(), mode === "development" && componentTagger()].filter(
    Boolean
  ),
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
}));