Is there a way to specify the wrangler file directory?
I'm trying to deploy a static react app to cloudflare pages in a monorepo, everything works but it can't find the wrangler file because it's in a child directory, not the monorepo root.
6 Replies
You can
cd
into the right directory for the deploy?The build script has to be at the root for turbo to build dependent packages: npx turbo run build --filter=@frontend
I forgot to mention it's a turborepo monorepo
Oh, so the Worker is in the root... So why is the Wrangler config not there too?
the worker isn't in the root, it's in
apps/frontend
but since i'm using yarn workspaces, it knows the directory it isTurbo does run in each Workspace though, right? Like if you have a
build
script with a wrangler deploy
within apps/frontend
, then Turbo would run in the apps/frontend
dir, not from the root
Unless something else is going onoh yes it will!
You fixed it for me ðŸ˜
Thank you!