Vercel Deployment error

The current issue i am facing is that if i try to deploy my nextjs website i get the error Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project. which i think may be caused because of my different folder structure. Tho if i run npm run build locally in my VScode it seems to be working correctly.

this is my folder structure: (see picture)

in my structure in the root folder there is the .env file (which i imported extra in vercel) the package.json and all that other stuff and a bot folder (which is my discord bot) and a nextdash folder (my nextjs website im trying to deploy). i have the structure like this so i can share the package.json etc with both my bot and websites. in vercel i didnt override any path and everything is default.

my package.json:

{
  "name": "leveling",
  "version": "1.0.0",
  "main": "project/bot/index.js",
  "scripts": {
    "bot": "node project/bot/index.js",
    "dashboard": "node project/dashboard/app.js",
    "dev": "next dev project/nextdash",
    "build": "next build project/nextdash",
    "start": "next start project/nextdash",
    "lint": "next lint project/nextdash"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "@napi-rs/canvas": "^0.1.55",
    "discord.js": "^14.16.1",
    "dotenv": "^16.4.5",
    "express": "^4.21.0",
    "express-session": "^1.18.0",
    "mongoose": "^8.7.0",
    "next": "14.2.14",
    "next-auth": "^4.24.8",
    "passport": "^0.7.0",
    "passport-discord": "^0.1.4",
    "react": "^18",
    "react-dom": "^18"
  }
}

Hello and welcome to the community, @tizooo!

Since this looks like a monorepo, you may need to adjust the Root Directory or other Build and Development Settings for the project.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.