(edited)
I have a folder called web, and currently in Vercel I have the root be pointed to web with the option to use files outside of directory. However, I tried setting up workspaces in the parent directly (main directory) and it works locally but getting a lot of issue when I build with node modules. The build is breaking on preview btw. Everything works however when I run it locally
{ "name": "monorepo", "private": true, "workspaces": [ "web", "packages/*" ], "scripts": { "dev": "yarn workspace something dev", "dev:local": "yarn workspace something dev:local", "dev:better-auth": "yarn workspace something dev:better-auth", "dev:preview": "yarn workspace something dev:preview", "build": "yarn workspace something build", "build:web": "yarn workspace something build", "lint": "yarn workspace something lint", "lint-fix": "yarn workspace something lint-fix", "test": "yarn workspace something test" }, "engines": { "node": "=20" }}