Create a D1 database from cloudflare dashboard and update your wrangler.toml file with proper database name and id.
pnpm install
pnpm run dev
Make sure to set proper variables/bindings in wrangler.toml file.
pnpm run deploy:dev
Make sure to set proper variables/bindings in wrangler.toml file.
pnpm run deploy:prod