Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed May 24, 2024
1 parent 0a91016 commit 44b4e6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/landing/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const waitlistEndpoint = new URL(
).toString();

export default defineConfig({
ssr: false,
ssr: true,
server: {
prerender: {
crawlLinks: true,
Expand Down
5 changes: 4 additions & 1 deletion apps/landing/src/entry-server.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @refresh reload
import { StartServer, createHandler } from "@solidjs/start/server";
import { NoHydration } from "solid-js/web";

export default createHandler(
() => (
Expand All @@ -16,7 +17,9 @@ export default createHandler(
{assets}
</head>
<body>
<div id="app">{children}</div>
<div id="app">
<NoHydration>{children}</NoHydration>
</div>
{scripts}
</body>
</html>
Expand Down
5 changes: 4 additions & 1 deletion apps/landing/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import type { JSX } from "solid-js";
import { z } from "zod";
import DashboardImg from "../assets/dashboard.png";
import { Hydration } from "solid-js/web";

// TODO: Setup unplugin icons
function PhLaptop(props: JSX.IntrinsicElements["svg"]) {
Expand Down Expand Up @@ -115,7 +116,9 @@ export default function Page() {
</p>

<div class="pt-4 flex justify-center">
<Waitlist />
<Hydration>
<Waitlist />
</Hydration>
</div>

<ul class="flex flex-col space-y-4 pt-4">
Expand Down

0 comments on commit 44b4e6e

Please sign in to comment.