Function not being deployed

I have a project in Pages that has a function set up in my “functions” folder at the root of my repository. However, whenever I deploy the website the function isn’t deployed with the rest of the project.

Am I doing something wrong? I know the folder is in the correct location in my repo.