[chore] move cards to htmx post

This commit is contained in:
2026-02-22 11:00:30 -05:00
parent b7679168ae
commit bdcf90b0d9
7 changed files with 60 additions and 118 deletions

View File

@@ -31,6 +31,7 @@ async function createCollection(client: Client) {
{ name: 'energyType', type: 'string', facet: true },
{ name: 'number', type: 'string' },
{ name: 'Artist', type: 'string' },
{ name: 'sealed', type: 'bool' },
],
default_sorting_field: 'productId',
});
@@ -61,6 +62,7 @@ async function preloadSearchIndex() {
energyType: card.energyType || "",
number: card.number,
Artist: card.Artist || "",
sealed: card.sealed,
})), { action: 'upsert' });
console.log(chalk.green('Search index preloaded with Pokémon cards.'));