Env implementation

This commit is contained in:
sumona-banerjeee
2026-02-20 17:01:57 +05:30
parent 580b5b8aa3
commit 5366230a4a
9 changed files with 3273 additions and 13 deletions

View File

@@ -18,8 +18,8 @@ import {
} from "@/lib/api"
import { storeVideoFile } from "@/lib/video-storage"
const API_URL = "http://127.0.0.1:8000/api/v1"
const WS_URL = "ws://127.0.0.1:8000/api/v1"
const API_URL = process.env.NEXT_PUBLIC_API_URL
const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://")
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"