Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp committed Aug 29, 2024
1 parent a2640b9 commit 2ef86b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion domains.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
16 changes: 0 additions & 16 deletions website/app/routes/_layout._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit 2ef86b2

Please sign in to comment.