-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment broken with Nx #115
Comments
thanks, @ebrehault — we're digging into this! |
@jlengstorf I believe that |
Good news, I found a workaround. What you have to do is to build Next application to root repository instead by passing
|
hey all! thanks for your patience on this. we're finally getting to work on these nx/greater monorepo issues. we're consolidating everyone's issues into #433, so we'll close this in favor of that. please follow along there, but we'll try to circle back here, too, whenever we release support! 🙏 |
@ebrehault @rayriffy This is now released, but not enabled by default yet. Could you try it out? You need to |
@ascorbic it works just fine! thanks 🙏 |
Thanks for the update! Yes, unfortunately we have to do that, as we need to be able to work out where the app folder is, and setting the publish dir allows us to do this. Otherwise we can't find the config file or the output dir |
Yes, well that's definitely not a problem, moreover the error messages we get from the CLI are very accurate so even someone who skipped the docs (as I did :) ) will understand what to do. |
Describe the bug
A typical Next.js app built into an Nx monorepo will be located in a subfolder like
./apps/my-site
.When the
next.config.js
file is not in the project root folder, theonBuild
command fails withUsing
base
innetlify.toml
[build] section does not fix the problem (but it is not the proper approach according the documentation as it is supposed to target a folder containingpackage.json
, while an Nx project contains itspackage.json
in its root, not in each app folder).To Reproduce
Steps to reproduce the behavior:
Expected behavior
The deployment should work
Versions
If you're using the CLI to build
If you're using file-based installation
The text was updated successfully, but these errors were encountered: