yarn install
yarn dev
In ./main
directory.
# local
npx wrangler d1 migrations apply kiribi-db --local
# remote
npx wrangler d1 migrations apply kiribi-db --remote
yarn workspace kiribi publish
If first time you need to create queue and database
$ cd example
$ npx wrangler d1 create example-kiribi-db
$ npx wrangler queues create example-kiribi-queue
$ npx wrangler d1 migrations apply example-kiribi-db --remote
# in root directory
$ yarn workspace kiribi prepack
$ cd example
$ yarn wrangler deoply