-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
priority: hightype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Describe the bug
A bug has been introduced with version 3.7.0 where if the netlify.toml
configuration file contains multiple npm commands such as npm run build && npm run export
, the plugin fails with an internal error.
To Reproduce
Steps to reproduce the behavior:
- Fork https://github.com/andismith/nextjs-test-blog (this is a copy of the Netlify NextJS starter blog, with an adjusted
netlify.toml
file). - Build it on Netlify
- See error
- Run
npm install @netlify/[email protected] --save-dev
- See it now passes
Example at: https://app.netlify.com/sites/elated-mcclintock-cdc73c/deploys
Expected behavior
The build should still work in v3.7.0
Versions
- Next.js: 11
- @netlify/plugin-nextjs: 3.7.0
If you're using file-based installation
- netlify.toml:
[build]
publish = "dist"
command = "npm run build && npm run export"
(this also occurs for multiple yarn commands too)
baeteja
Metadata
Metadata
Assignees
Labels
priority: hightype: bugcode to address defects in shipped codecode to address defects in shipped code