succuess pt. 10 fix ssr on preview and prod builds
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user