succuess pt. 10 fix ssr on preview and prod builds

This commit is contained in:
2026-02-05 04:45:06 -08:00
parent ef9453cbc0
commit db16010f1b
4 changed files with 46 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount } from "svelte";
import { page } from "$app/state";
import { db, ensureSeeded } from "$lib/db/client-db";
import { ensureSeeded, getClientDb } from "$lib/db/client-db";
import { getAnimeWithSongsByAnnId } from "$lib/db/client-db/queries";
import { seasonName } from "$lib/utils/amq";
@@ -54,6 +54,7 @@
}
try {
const { db } = await getClientDb();
await ensureSeeded();
const res = await getAnimeWithSongsByAnnId(db, annId);