From 55c0d055c232de4f3d835670e774c879f0464455 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Sat, 23 Mar 2024 00:51:11 -0700 Subject: [PATCH] does taking them out of prerender make the connection work? --- chan.dev/src/pages/chores/rock.astro | 2 -- chan.dev/src/pages/chores/ruby.astro | 2 -- 2 files changed, 4 deletions(-) diff --git a/chan.dev/src/pages/chores/rock.astro b/chan.dev/src/pages/chores/rock.astro index 37fc2a4c..39e9b444 100644 --- a/chan.dev/src/pages/chores/rock.astro +++ b/chan.dev/src/pages/chores/rock.astro @@ -8,8 +8,6 @@ const habits = await db .from(Habit) .where(eq(Habit.owner, 'Rock')) -export const prerender = false - const chore_data = habits.map( (habit: { id: number diff --git a/chan.dev/src/pages/chores/ruby.astro b/chan.dev/src/pages/chores/ruby.astro index b74adb4a..4740cb2b 100644 --- a/chan.dev/src/pages/chores/ruby.astro +++ b/chan.dev/src/pages/chores/ruby.astro @@ -3,8 +3,6 @@ import Layout from '#layouts/Layout.astro' import Prose from '#components/prose.astro' import {db, Habit, eq} from 'astro:db' -export const prerender = false - const habits = await db .select() .from(Habit)