diff --git a/domains.json b/domains.json index 26271656..7a74ab06 100644 --- a/domains.json +++ b/domains.json @@ -1,5 +1,4 @@ [ - ["test.docs.page", "invertase/docs.page"], ["use.docs.page", "invertase/docs.page"], ["docs.globe.dev", "invertase/globe"], ["docs.turing.sh", "TuringAI-Team/turing-ai-api"], diff --git a/website/app/routes/_layout._index/route.tsx b/website/app/routes/_layout._index/route.tsx index 5c4e8d1a..c29d1383 100644 --- a/website/app/routes/_layout._index/route.tsx +++ b/website/app/routes/_layout._index/route.tsx @@ -9,25 +9,9 @@ import { Features } from "./Features"; import { Hero } from "./Hero"; import { Platform } from "./Platform"; -import { loader as docsRouteLoader } from "~/routes/$/route"; -import { LoaderFunctionArgs } from "@vercel/remix"; - export const links = getLinkDescriptors; export const meta = getMetadata; -export const loader = async (args: LoaderFunctionArgs) => { - const url = new URL(args.request.url); - - console.log('URL HOSTNAME', url.hostname); - - // If url hostname is not docs.page or staging.docs.page, we need to return the docsRouteLoader - if (!["docs.page", "staging.docs.page"].includes(url.hostname)) { - return docsRouteLoader(args); - } - - return {}; -}; - export default function Homepage() { return ( <>