feat: add route constant

This commit is contained in:
2026-03-17 14:10:53 +05:30
parent 2b2f348cc7
commit e41236108a
8 changed files with 39 additions and 19 deletions

View File

@@ -13,6 +13,7 @@ import {
} from "@/lib/api"
import { getVideoFile } from "@/lib/video-storage"
import { storeVideoFile } from "@/lib/video-storage"
import { ROUTES } from "@/utils/routes"
const API_URL = process.env.NEXT_PUBLIC_API_URL
const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "ws://")
@@ -80,7 +81,7 @@ export default function VideoProcessingPage() {
})
if (response.status === 404) {
router.replace("/upload")
router.replace(ROUTES.UPLOAD)
return
}