Express.js Deployment

> backend@1.0.0 build /vercel/path0/apps/backend
> rimraf dist && pnpm --filter "@fsm/shared-types" run build && tsc
> @fsm/shared-types@1.0.0 build /vercel/path0/packages/shared-types
> rimraf dist && tsc
Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
{
  "version": 2,
  "rewrites": [
    {
      "source": "/api/(.*)",
      "destination": "/apps/backend/dist/$1"
    }
  ]
}

its a monorepo project, the frontend is deployed, but the backend is failing, the backend is an api, can anyone help?

Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.

Could you share your project structure? Looking at the error message, it looks like there is no public folder.

1 Like