How to deploy pages from command line?
My project contains a frontend directory (with src/ and build/ inside it) and a functions directory (containing cloudflare functions). I usually deploy my cloudflare pages by just making a commit and pushing an update to the branch.
But I wanted to deploy without pushing and used this:
wrangler pages deploy frontend --project-name project
But now my deployed site is broken and blank. Maybe cause I only passed the frontend directory to the pages deploy
command and it missed the funcions/ directory? How do I do this properly?1 Reply
You are probably going to want
wrangler pages deploy frontend/build --project-name project