Install the dependencies.
npm install
Add your account_id
to wrangler.toml
.
Note: you can find it in the right side of the workers dashboard overview.
Run in development mode locally.
npm run dev
npm run publish
Note: This automatically builds your code, so you don't need to worry about building manually before publishing.