@HardlyWorkin' I have an issue with my Cloudflare Functions. I followed the steps to create a Cloud

@HardlyWorkin' I have an issue with my Cloudflare Functions. I followed the steps to create a Cloudflare Pages project with Functions using the
wrangler pages project create
command, but I'm encountering problems when trying to access my functions.

I created a new function named
hello.js
inside the
functions
directory with the following content:
export async function onRequest(context) {
  return new Response("Hello, World!");
}


When I tried to test my function locally using
npx wrangler pages dev ./
, I couldn't access it at
http://localhost:8788/hello
. Additionally, after deploying my project to Cloudflare Pages, I attempted to access my function at
https://<my-project-name>.pages.dev/hello
, but it didn't work either.
Was this page helpful?