Hello! I have been trying to make a simple authentication system using pages functions (I'm using Ja

Hello! I have been trying to make a simple authentication system using pages functions (I'm using JavaScript) and in the build log it is saying this:
    ✘ [ERROR] No routes found when building Functions directory: /opt/buildhome/repo/functions

now in my repo, I have set up the functions as following:
Root directory:
   = dist
   = functions
   | - index.js
   | - auth
     | - login.js
     | - register.js
     | - resetpassword.js
   = src
   = _routes.json
   = wrangler.toml

So is there something I can do to fix that error?
Was this page helpful?