how to use d1 procedures with Pages

https://blog.cloudflare.com/whats-new-with-d1/
[[ d1_databases ]]
# What binding name to use (e.g. env.DB):
binding = "DB"
# The name of the DB (used for wrangler d1 commands):
database_name = "my-d1-database"
# The D1's ID for deployment:
database_id = "48a4224e-...3b09"
# Which D1 to use for `wrangler dev`:
# (can be the same as the previous line)
preview_database_id = "48a4224e-...3b09"

# NEW: adding "procedures", pointing to a new JS file:
procedures = "./src/db/procedures.js"
[[ d1_databases ]]
# What binding name to use (e.g. env.DB):
binding = "DB"
# The name of the DB (used for wrangler d1 commands):
database_name = "my-d1-database"
# The D1's ID for deployment:
database_id = "48a4224e-...3b09"
# Which D1 to use for `wrangler dev`:
# (can be the same as the previous line)
preview_database_id = "48a4224e-...3b09"

# NEW: adding "procedures", pointing to a new JS file:
procedures = "./src/db/procedures.js"
however pages does not need a wrangler.toml config.
The Cloudflare Blog
D1: our quest to simplify databases
Get an inside look on the D1 experience today, what the team is currently working on and what’s coming up!
No description
3 Replies
Cyb3r-Jak3
Cyb3r-Jak33mo ago
You can see use the wrangler.toml file for D1 commands just means when you publish your pages project the bindings aren't set.
TigersWay
TigersWay3mo ago
@Cyb3r-Jok3 Which basically - again - means that Pages Functions are not in par with Workers :facesad:
Walshy
Walshy3mo ago
Procedures are not available to either They aren't actually released, the blog talks about what the team were thinking at the time
Want results from more Discord servers?
Add your server
More Posts
Automatically authorize all Zero trust domains in an Application when one of them was authorizedHi guys, currently my web and my R2 bucket domain are protected by the same zero trust Application aInstruction from origin to cache HTMLI'm aware Cloudflare doesn't cache HTML by default and you need to enable "cache everything" to makeWorker Subrequests 429 [Regional]Note: The following issue ONLY affects requests coming from the Chicago timezone, so it likely a locIn my case I got these results:In my case I got these results: Raw: 6.07 MB Gzipped: 1.05 MB Minified: 2.23 MB Minified & Gzipped:Lost 2FA and have not logged in to Cloudflare recently so it doesn't recognise any of my devicesHi I need help to login to my account. I lost my 2FA as i changed my phone, and the last time i loggPaid Workers Plan CPU Timeout under 5 seconds#workers-help I've set up a worker for my Sveltekit app and the app is running as expected except ocSudden appearance of "Worker exceeded CPU time limit" errorsPreviously-working workers being tested with wrangler dev --env development --remote started failingDownloading file from R2 but unsure what the best method is.Hey there, newbie here. Ive read several cloudflare docs on how to give users temporary access to a .wellknownAnother question, is it possible to add .well-known directory on cloudflare since it's also not possService Binding in Cloudflare WorkersYou probabaly want to use a service bind to make a worker calls itself https://developers.cloudflare