Env implementation
This commit is contained in:
@@ -10,8 +10,8 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@
|
||||
import { Upload, Loader2, AlertCircle } from "lucide-react"
|
||||
import type { DetectionData, DetectionType } from "@/lib/types"
|
||||
|
||||
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 UploadSectionProps = {
|
||||
|
||||
Reference in New Issue
Block a user