context.cloudflare.env is not populated.npm run build && npx wrangler d1 migrations apply db-namelocal flag but otherwise follow this - https://developers.cloudflare.com/d1/learning/local-development/#develop-locally-with-pages
npm run build && npx wrangler d1 migrations apply db-name and got error:Internal error: failed to get DB size and num_tables?Failed: Error while executing user command. Exited with error code: 1
Failed: build command exited with code: 1
Failed: error occurred while running build commandInternal error: failed to get DB size and num_tables