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

@@ -3,9 +3,9 @@
import { useSearchParams } from "runed/kit";
import { onMount } from "svelte";
import {
db,
ensureSeeded,
getAnimeList,
getClientDb,
searchAnimeByName,
} from "$lib/db/client-db";
import { AmqBrowseSearchSchema } from "$lib/types/search/amq-browse";
@@ -34,6 +34,8 @@
try {
isSearching = true;
const { db } = await getClientDb();
if (!q) {
anime = await getAnimeList(db, 20);
} else {