Fix production deploy config regeneration after remote migrations#9
Fix production deploy config regeneration after remote migrations#9Jamesllllllllll merged 5 commits intomainfrom
Conversation
|
Preview deployment updated. App: https://request-bot-pr-9.jameskeezer.workers.dev |
|
Preview deployment updated. App: https://request-bot-pr-9.jameskeezer.workers.dev |
|
Preview deployment updated. App: https://request-bot-pr-9.jameskeezer.workers.dev |
|
Preview deployment updated. App: https://request-bot-pr-9.jameskeezer.workers.dev |
|
Preview deployment updated. App: https://request-bot-pr-9.jameskeezer.workers.dev |
Fix production deploy config regeneration after remote migrations
Summary
Fixes the production deploy workflow so the built frontend Wrangler config is regenerated after remote D1 migrations run, and updates the public search page to behave more like a browsable demo catalog. The search page now loads songs by default, shows a note of how many songs are currently available in the demo database, hides download counts from public-facing results, and displays the
voicepath asLyricsin the UI.What Changed
npm run deploy:prepareafternpm run db:migrate:remotesrc/workers/app/index.ts/searchpage to load a paginated list of available songs by default/search/searchexplaining that this is a demo and the database currently contains the number of songs that exist in the current DB/searchresultsvoicelabels to display asLyricswithout changing stored path values or DB dataHow To Test
src/workers/app/index.tsmissing-entrypoint error..generated/wrangler.production.jsoncconfig./searchand confirm that songs are listed immediately without entering a query./searchstill works./searchresults no longer show download counts.voicepath labels now display asLyrics.Screenshots Or UI Notes
The
/searchpage now behaves more like a browsable catalog, includes an info alert noting that the current dataset is a 50-song demo, no longer shows download counts in public search results, and displaysLyricsinstead ofVoicein the UI.Checklist