API for Cloudflare Functions #963
-
I'm trying to deploy a project which makes a post call to is analog supposed to also deploy the endpoints as functions? cause wrangler gives me the following:
|
Beta Was this translation helpful? Give feedback.
Answered by
brandonroberts
Mar 26, 2024
Replies: 1 comment 8 replies
-
Yes it is supposed to deploy them as functions. I actually had the same problem. I "fixed" it by copying package.json from an older project (where deployment to CF did work) to the new one. Hopefully a proper fix can be implemented soon |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@stewones Figured out the issue. Cloudflare adjusted the output directory for functions. This should work
CF docs: https://developers.cloudflare.com/pages/functions/advanced-mode/
Will update the docs