Rookie question: adding function/wrangler.toml to existing project

Hey y'all, I'm trying to set up some projects so I can use an R2 bucket for assets per this tutorial: https://developers.cloudflare.com/pages/tutorials/use-r2-as-static-asset-storage-for-pages/ But I'm kinda stuck on how to set up wrangler/functions on an existing project? I know that to create a project in CLI you'd usually use npm create cloudflare@latest to initialize it and set up wrangler.toml but what if everything sorta already exists and you just want to add it on?
Cloudflare Docs
Use R2 as static asset storage with Cloudflare Pages | Cloudflare P...
This tutorial will teach you how to use R2 as a static asset storage bucket for your Pages app. This is especially helpful if you’re hitting the file limit or the max file size limit on Pages.
1 Reply
Cyb3r-Jak3
Cyb3r-Jak32mo ago
Like an existing pages project or workers project?
Want results from more Discord servers?
Add your server