Skip to content

fix: set wrangler workingDirectory so Pages Functions are picked up#23

Merged
pkmaster21 merged 1 commit intomainfrom
fix/wrangler-working-directory
Apr 16, 2026
Merged

fix: set wrangler workingDirectory so Pages Functions are picked up#23
pkmaster21 merged 1 commit intomainfrom
fix/wrangler-working-directory

Conversation

@pkmaster21
Copy link
Copy Markdown
Owner

--functions-dir doesn't exist in wrangler 3.x, which is what wrangler-action@v3.14.1 installs. Wrangler 3 discovers the functions/ directory relative to its working directory instead.

Switches to workingDirectory: packages/web so wrangler runs from the right location and automatically finds packages/web/functions/ alongside packages/web/dist/.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying tabby with  Cloudflare Pages  Cloudflare Pages

Latest commit: db0ce47
Status: ✅  Deploy successful!
Preview URL: https://f163f6f3.tabby.pages.dev
Branch Preview URL: https://fix-wrangler-working-directo.tabby.pages.dev

View logs

@pkmaster21 pkmaster21 merged commit 644c697 into main Apr 16, 2026
7 checks passed
@pkmaster21 pkmaster21 deleted the fix/wrangler-working-directory branch April 16, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant