--- import ebay from "/vendors/ebay.svg?raw"; import { db } from '../../db/index.ts'; export const partial = true; export const prerender = false; const searchParams = Astro.url.searchParams; const productId = Number(searchParams.get('productId')) || 0; // query the database for the card with the given productId and return the card data as json const card = await db.query.cards.findFirst({ where: { productId: Number(productId) }, with: { prices: true, set: true, } }); ---