LoLesttK
CDCloudflare Developers
•Created by LoLesttK on 1/4/2025 in #pages-help
Functions prod vs dev
So i was following thie pages-functions guide:
https://developers.cloudflare.com/pages/functions/get-started/
seems easy.. put in
/functions
folder and you good to go.
so for the sake of checking its working copied the function from the guide.
/functions/helloworld.js
long story short... when im deploying it localy (wrangler)
it works (http://localhost:8788/helloworld
).
When i deploy to cloudflare it does't work, it shows the 404 page of the project.
https://my-cf-domain.com/helloworld
Anyone any idea why? 🙏13 replies