From 35c8bf25f54f0873d76f3f3a9d5e7b73e6a7fed5 Mon Sep 17 00:00:00 2001 From: Thad Miller Date: Wed, 25 Mar 2026 13:42:19 -0400 Subject: [PATCH] [bugfix] update static path on scripts --- scripts/list-missing-images.ts | 2 +- scripts/preload-tcgplayer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/list-missing-images.ts b/scripts/list-missing-images.ts index 601f878..96be80a 100644 --- a/scripts/list-missing-images.ts +++ b/scripts/list-missing-images.ts @@ -12,7 +12,7 @@ async function findMissingImages() { .where(sql`${schema.tcgcards.sealed} = false`); const missingImages: string[] = []; for (const card of cards) { - const imagePath = path.join(process.cwd(), 'public', 'cards', `${card.productId}.jpg`); + const imagePath = path.join(process.cwd(), 'static', 'cards', `${card.productId}.jpg`); try { await fs.access(imagePath); } catch (err) { diff --git a/scripts/preload-tcgplayer.ts b/scripts/preload-tcgplayer.ts index ef9931f..96b4db3 100644 --- a/scripts/preload-tcgplayer.ts +++ b/scripts/preload-tcgplayer.ts @@ -242,7 +242,7 @@ async function syncProductLine(productLine: string, field: string, fieldValue: s } // get image if it doesn't already exist - const imagePath = path.join(process.cwd(), 'public', 'cards', `${item.productId}.jpg`); + const imagePath = path.join(process.cwd(), 'static', 'cards', `${item.productId}.jpg`); if (!await helper.FileExists(imagePath)) { const imageResponse = await fetch(`https://tcgplayer-cdn.tcgplayer.com/product/${item.productId}_in_1000x1000.jpg`); if (imageResponse.ok) {