Need instructions for existing workers #15343
Labels
content:edit
Request for content edits
documentation
Documentation edits
product:d1
D1: https://developers.cloudflare.com/d1/
Existing documentation URL(s)
Doc link - https://developers.cloudflare.com/d1/get-started/
This page lists nicely the steps when creating a worker from scratch but what if someone already has a worker defined and set up and are adding the D1 database to it. What node dependency to add, etc. can be mentioned.
For example, I have a nextjs app set up already and I want to add D1 database to it. So, how shall I do that?
Currently, the below is giving me an error (D1Database not found):
I ran this too
npm install @cloudflare/workers-types @cloudflare/d1
but no luck.What changes are you suggesting?
It should contain steps to do for existing worker.
Additional information
No response
The text was updated successfully, but these errors were encountered: