site name: venture-club-platform
Site deploys builds fine according to the logs but api calls fail with:
This function has crashed
An unhandled error in the function code triggered the following message:
Error - Could not find a production build in the '/home/runner/work/main/main/dist/apps/platform/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
Stack trace
Error: Could not find a production build in the '/home/runner/work/main/main/dist/apps/platform/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at NextNodeServer.getBuildId (/var/task/node_modules/next/dist/server/next-server.js:165:23)
at new Server (/var/task/node_modules/next/dist/server/base-server.js:56:29)
at new NextNodeServer (/var/task/node_modules/next/dist/server/next-server.js:67:9)
at getBridge (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:53:28)
at Runtime.handler (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:93:46)
at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1089:29)
Build settings
Base directory: Not set
Build command: npx nx build platform --prod
Publish directory: dist/apps/platform/.next