();
- return data.settings;
-}
-
export default function Site() {
- const settings = useSettings();
-
- useEffect(() => {
- sessionStorage.setItem("graphql_url", settings.graphql_url);
- }, [settings.graphql_url]);
-
return (
<>
diff --git a/remix.env.d.ts b/remix.env.d.ts
index 3a15a38..3bd0dd4 100644
--- a/remix.env.d.ts
+++ b/remix.env.d.ts
@@ -4,4 +4,5 @@
interface Window {
__APOLLO_STATE__: any;
__USER_STATE__: any;
+ __GRAPHQLURL__: string;
}