Current behavior:
Expected Behavior:
repo-root/
. . front-end/ → Deploys to vercel-project-arbitrary-name-1
. . . . package.json → See package.json#2
. . back-end/ → Deploys to vercel-project-arbitrary-name-2
. . . . package.json → See package.json#3
package.json → See package.json#1
package.json
#1
{
"name": "<ROOT_NAME>",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "concurrently \"yarn workspace frontend dev\" \"yarn workspace backend develop\"",
"build": "yarn workspace frontend build && yarn workspace backend build",
"start": "concurrently \"yarn workspace frontend start\" \"yarn workspace backend start\""
},
"keywords": [],
"author": "",
"license": "ISC"
}
package.json
#2
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@clerk/nextjs": "^6.5.2",
"@heroicons/react": "^2.2.0",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4",
"@shadcn/ui": "^0.0.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.462.0",
"next": "15.0.3",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
"vercel": "^39.1.2"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
package.json
#3
{
"name": "backend",
"version": "0.1.0",
"private": true,
"description": "A Strapi application",
"scripts": {
"build": "strapi build",
"deploy": "strapi deploy",
"develop": "strapi develop",
"start": "strapi start",
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-cloud": "5.4.2",
"@strapi/plugin-users-permissions": "5.4.2",
"@strapi/strapi": "5.4.2",
"better-sqlite3": "11.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.0.0",
"styled-components": "^6.0.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
},
"engines": {
"node": ">=18.0.0 <=22.x.x",
"npm": ">=6.0.0"
},
"strapi": {
"uuid": "<REDACTED>"
}
}
Current build behavior works for frontend which looks like:
Current build behavior does not work for backend which looks like:
Back-end: Strapi v5