Env added
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
type Project
|
||||
} from "@/lib/api"
|
||||
|
||||
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||
|
||||
interface ProjectSummary {
|
||||
|
||||
@@ -18,6 +18,7 @@ import { DetectionData, DetectionType } from "@/lib/types"
|
||||
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||
|
||||
|
||||
export default function ResultsPage() {
|
||||
const router = useRouter()
|
||||
const [session, setSession] = useState<SessionContext | null>(null)
|
||||
|
||||
@@ -23,6 +23,7 @@ const WS_URL = API_URL?.replace(/^https?:\/\//, "wss://")
|
||||
|
||||
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
|
||||
|
||||
|
||||
export default function UploadPage() {
|
||||
const router = useRouter()
|
||||
const [session, setSession] = useState<SessionContext | null>(null)
|
||||
|
||||
Reference in New Issue
Block a user