Modified from the basics template (npm create astro@latest -- --template basics
) to add tRPC, tRPC-panel, running on Cloudflare Pages.
- Website: https://trpc-astro-cloudflare.pages.dev/
- tRPC-panel: https://trpc-astro-cloudflare.pages.dev/trpc
- The list of users does not update. You need to refresh the page.
- Jetbrains Webstorm IDE has buggy astro integration (even with plugin installed).
- Run
pnpm prebuild
to generate the tRPC panel UI. - Run
pnpm dev
to run dev server, and open the URL provided.
- Create migration file: run
pnpm migration
- Run on database: e.g. run
wrangler d1 execute DB --file migrations/0000_closed_harrier.sql --local