diff --git a/apps/web/src/app/root.tsx b/apps/web/src/app/root.tsx
index d50b779..928dfd2 100644
--- a/apps/web/src/app/root.tsx
+++ b/apps/web/src/app/root.tsx
@@ -43,6 +43,8 @@ export function links() {
}
export const meta: MetaFunction = () => [
+ { charset: "utf-8" },
+ { viewport: "width=device-width, initial-scale=1" },
{ title: SITE_NAME },
{ name: "title", content: SITE_NAME },
{ name: "description", content: SITE_DESCRIPTION },
@@ -58,12 +60,24 @@ export const meta: MetaFunction = () => [
{ name: "twitter:site", content: SOCIAL_TWITTER },
];
+export function HydrateFallback() {
+ return (
+
+
+
+
+
+
+
+
+
+ );
+}
+
export default function App() {
return (
-
-
diff --git a/apps/web/src/app/routes/_index.tsx b/apps/web/src/app/routes/_index.tsx
index ab1361d..182bace 100644
--- a/apps/web/src/app/routes/_index.tsx
+++ b/apps/web/src/app/routes/_index.tsx
@@ -1,13 +1,10 @@
-import { useEffect } from "react";
-import { useNavigate } from "react-router-dom";
+import { redirect } from "@remix-run/react";
import { DEFAULT_COUNCIL_ADDRESS, NETWORK } from "../../../../../constants";
-export default function IndexPage() {
- const navigate = useNavigate();
-
- useEffect(() => {
- navigate(`/c/${NETWORK}/${DEFAULT_COUNCIL_ADDRESS}`);
- }, [navigate]);
+export async function clientLoader() {
+ return redirect(`/c/${NETWORK}/${DEFAULT_COUNCIL_ADDRESS}`);
+}
+export default function IndexPage() {
return null;
}
diff --git a/turbo.json b/turbo.json
index 66a3c4d..bc2660a 100644
--- a/turbo.json
+++ b/turbo.json
@@ -5,7 +5,7 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
- "outputs": [".next/**", "!.next/cache/**"]
+ "outputs": ["build/**"]
},
"//#format-and-lint": {},
"//#format-and-lint:fix": {