Trying to use page functions in cloudflare pages but it's not working

For Workes & Pages, what is the name of the domain?

Its for my page

What is the issue or error you’re encountering

Trying to use functions and it works locally when I use wrangler pages dev, but when I deploy it the functions don’t work.

What steps have you taken to resolve the issue?

I have tried to redeploy after removing the functions folder then redeployed again after adding it back in, however this has not helped. It seems like the functions folder is not being deployed at all. When you look up the static asset: /functions/index.js, it also doesn’t show up. Not sure if this is expected behaviour.