I'm trying to use functions directory for api routes in next.js but it's just sending 404 error for

I'm trying to use functions directory for api routes in next.js but it's just sending 404 error for any route I create inside functions directory. I tried with other framework astro too. Getting same error.
Screenshot_2024-09-10_at_8.43.54_AM.png
Was this page helpful?