From 853f9f1fb4d31846ed37200b69881d34bd448608 Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 28 Jun 2024 18:30:07 -0500 Subject: [PATCH] fix: remote host --- app/routes/_main-menu._index/route.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/routes/_main-menu._index/route.jsx b/app/routes/_main-menu._index/route.jsx index 09982d6..88ad816 100644 --- a/app/routes/_main-menu._index/route.jsx +++ b/app/routes/_main-menu._index/route.jsx @@ -1,5 +1,13 @@ +import {useLoaderData} from '@remix-run/react'; + import styles from './index.module.css'; +export function loader({request}) { + return { + host: new URL(request.url).host, + }; +} + export const meta = () => { return [ { @@ -13,12 +21,13 @@ export const meta = () => { }; export default function Index() { + const {host} = useLoaderData(); return (

Silphius

);