This might be related to how you’ve set up your deployment settings.
From the relevant docs:
In some projects, the top-level directory of the repository may not be the root directory of the app you’d like to build. For example, your repository might have a front-end directory containing a stand-alone Next.js app.
You can create a vercel.json file to the root of your project to set up your root directory.