Netlify Deployment Build Failures
Hi folks, having some issues with my build of convex generated files when deploying to netlify:
logs:
I am tried a number of different build commands with no success.
Have also checked that the generated files have been commited into git.
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Netlify's build system can't read above the base directory, guessing this is a monorepo where you've set the base to a specific package in the repo and convex is outside of the base.
Actually it looks like you need to make sure your "package directory" is your site root where your site package.json is, and your "base directory" is the repo root, that way you can import from anywhere in the repo: https://docs.netlify.com/configure-builds/monorepos/#set-the-package-directory
Monorepos
Set up your sites to build from a monorepo. Consider where to declare dependencies and how to use workspaces on the platform.