Skip to content

[D1] Deploying SveltKit on Cloudflare Pages using a D1 is unclear #12773

@ocolot

Description

@ocolot

Which Cloudflare product does this pertain to?

D1

Existing documentation URL(s)

What changes are you suggesting?

Provide a working example. The deployment works fine, but I can't get the local database binding to be accessible on platform.env.DB. Especially, the --d1 NORTHWIND_DB=xxxx-xxxx-xxxx-xxxx-xxxx that does not appear in the command line doc if I am not mistaken.

How the D1 database is deployed locally should be clarified, the differences between wrangler and wrangler pages in local, what DB is used (confusing flags with opposite defaults, sometimes --remote, sometimes --local).

Additional information

No response

Metadata

Metadata

Assignees

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:d1D1: https://developers.cloudflare.com/d1/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions