-
Notifications
You must be signed in to change notification settings - Fork 86
Failure when the publish directory is public
in a monorepo,
#181
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
Comments
hey @phyllisstein ! can you do me a favor and link me directly to your build logs? and/or share your build logs here? that'd be a great starting point for me, thank you!!! |
Sure thing. I think this should be public: https://app.netlify.com/sites/confident-jackson-73a6c0/deploys/605c7d2b8cdbcc000841847b. If not, I stashed a copy under the "Build logs" |
@phyllisstein oh duh sorry i missed that! are you able to rename your public dir to something else? |
No worries! I was keeping some static assets in the diff --git a/packages/web/build/.gitkeep b/packages/web/build/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/packages/web/netlify.toml b/packages/web/netlify.toml
new file mode 100644
index 0000000..ca1043a
--- /dev/null
+++ b/packages/web/netlify.toml
@@ -0,0 +1,2 @@
+[build]
+ publish = "build" diff --git a/packages/web/next.config.js b/packages/web/next.config.js
index f0aab5e..a1e41c0 100644
--- a/packages/web/next.config.js
+++ b/packages/web/next.config.js
@@ -1,4 +1,5 @@
module.exports = {
+ distDir: 'build',
future: {
webpack5: true,
}, That fixed it right up. Thanks so much for taking a look. 🎉 |
awesome thanks for reporting back!!! <3 @phyllisstein |
Describe the bug
👋 Hey folks. I’m running into the bug described in netlify/next-on-netlify#137. I’m not sure what caused the regression, but it seems not-unlikely that it’s related to building a Next app from within a monorepo. I get the same error logs running
netlify build
locally and running a build in the Netlify cloud environment:Build logs
The repo I’m working with is here, in case that’s useful; the Next app within the monorepo is located here.
Thanks for taking a look. Let me know if I can provide any additional color.
To Reproduce
Steps to reproduce the behavior:
public
folder underneath the package root.public
folder.Expected behavior
Netlify should build and deploy the Next.js application.
Versions
v10.0.9
v3.0.3
If you’re using the CLI to build
v3.13.7
If you’re using file-based installation
The text was updated successfully, but these errors were encountered: