functions not found

๐Ÿ‘‹ I hope you are doing great! I've searched far and wide and tried a lot of different to tweaks to solve this already, but hopefully you have an easy answer. I've made a pages project with my account - called fc-static-site. It is deployed via GitHub connection, and no matter what I do the /functions directory doesn't seem to get detected. This means the functions aren't deployed. Relevant attachments. 1. Folder structure of my project showing that /functions is in the root directory. 2. Build config for the project showing that the root directory should be default. When I watch for the build / deploy process in the project dashboard, functions is never mentioned at all. Also the functions tab on the deployment seems to be in the default state with a link to docs for using functions. When I run npx wrangler pages deploy locally, functions is never mentioned in the output. Thanks for the help let me know what else I can provide!
No description
No description
2 Replies
Galactus
GalactusOPโ€ข2w ago
Extra context - my .jsonc file that I believe was generated from a guided cli flow * For more details on how to configure Wrangler, refer to: * https://developers.cloudflare.com/workers/wrangler/configuration/ */ { "$schema": "node_modules/wrangler/config-schema.json", "name": "fc-static-site", "compatibility_date": "2025-02-14", "compatibility_flags": [ "nodejs_compat" ], "pages_build_output_dir": "./dist", "observability": { "enabled": true }, /** * Smart Placement * Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement */ // "placement": { "mode": "smart" }, /** * Bindings * Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including * databases, object storage, AI inference, real-time communication and more. * https://developers.cloudflare.com/workers/runtime-apis/bindings/ */ /** * Environment Variables * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables */ "vars": { "CFP_PASSWORD": "password" } /** * Note: Use secrets to store sensitive data. * https://developers.cloudflare.com/workers/configuration/secrets/ */ /** * Static Assets * https://developers.cloudflare.com/workers/static-assets/binding/ */ // "assets": { "directory": "./public/", "binding": "ASSETS" }, /** * Service Bindings (communicate between multiple Workers) * https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings */ // "services": [{ "binding": "MY_SERVICE", "service": "my-service" }] }
Cloudflare Docs
Configuration and Bindings ยท Cloudflare Workers docs
Details on how to configure Workers static assets and its binding.
Cloudflare Docs
Configuration - Wrangler ยท Cloudflare Workers docs
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
Galactus
GalactusOPโ€ข2w ago
Logs from a project deploy

Did you find this page helpful?