diff --git a/src/utils/http.ts b/src/utils/http.ts deleted file mode 100644 index e209a9d4f..000000000 --- a/src/utils/http.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const HTTP_STATUSES = { - TEMPORARY_REDIRECT: 307, -}; diff --git a/studio/lib/interfaces/redirect.ts b/studio/lib/interfaces/redirect.ts deleted file mode 100644 index 51a4e58ff..000000000 --- a/studio/lib/interfaces/redirect.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface RedirectDestinationSlugPage { - destination: string; -} diff --git a/studio/lib/queries/redirects.ts b/studio/lib/queries/redirects.ts deleted file mode 100644 index b54619985..000000000 --- a/studio/lib/queries/redirects.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { groq } from "next-sanity"; - -export const REDIRECT_BY_SOURCE_SLUG_QUERY = groq` - *[_type == "brokenLink" && source.current == $slug][0]{ - "destination": select( - destination.type == "reference" => destination.reference->slug.current, - destination.type == "external" => destination.external - ) - } -`;