Can not local development CF pages function with D1 database

the production worked, but the local dev with function D1 database can not

how can i use the online database local? or have another way develop in localhost?

What doesn’t work? What have you tried? What error did you see?

Have you looked at the docs? Bindings · Cloudflare Pages docs