diff --git a/src/app.tsx b/src/app.tsx index d7e64fb..9c26c50 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,52 +1,62 @@ import { MetaProvider, Title } from "@solidjs/meta"; -import { Router } from "@solidjs/router"; +import { Router, useLocation } from "@solidjs/router"; import { FileRoutes } from "@solidjs/start/router"; -import { ErrorBoundary, Suspense } from "solid-js"; +import { ErrorBoundary, Suspense, Show } from "solid-js"; import { AuthProvider } from "~/lib/auth"; import { AiChatWidget } from "~/components/AiChatWidget"; import "./app.css"; +// Standalone pre-launch pages that shouldn't show the logged-out-app chrome +// (the AI chat widget assumes an app context - it doesn't make sense on a +// pure marketing/waitlist page). +const NO_CHAT_WIDGET_ROUTES = new Set(["/coming-soon"]); + export default function App() { return ( ( - - Nxtgauge - - ( -
-

Frontend Error

-

- A runtime error occurred while rendering this page. -

-
 {
+        const location = useLocation();
+        return (
+          
+            Nxtgauge
+            
+               (
+                  
- {String((err as any)?.message || err)} -
-
- )} - > - {props.children} - -
-
-
- )} +

Frontend Error

+

+ A runtime error occurred while rendering this page. +

+
+                      {String((err as any)?.message || err)}
+                    
+ + )} + > + {props.children} + + + + + + + ); + }} >