Netlify Build
────────────────────────────────────────────────────────────────
❯ Version
@netlify/build 29.51.3
❯ Flags
{}
Configuration error
────────────────────────────────────────────────────────────────
Error message
When resolving config file /opt/atlassian/pipelines/agent/build/netlify.toml:
Plugin "@netlify/plugin-nextjs" must not be specified twice in the app
I am experiencing the same issue in my GitHub pipeline for the past 2 days when running the command: netlify deploy --build --prod. Other pipelines that deploy to lower environments succeed but this one consistently fails even though the pipelines are almost identical.
Following this thread for any details on the issue!
Edit: I was just able to get my site to deploy. I’m not sure if it was something I did or something on Netlfiy’s side that changed. But I went into my Build & Deploy Site configurations in the UI and removed all values I had set in the “Build Settings” panel since I have a netlify.toml file that handles those configurations anyway.
I’m also seeing this. I removed the Runtime setting in the Netlify UI and also removed the [[plugin]] section from my netlify.toml and the error went away and still the plug-in is used. I guess the netlify cli is detecting it itself now?
Sorry for the issue. I’ve made a change on our end to hopefully resolve this issue. Could you give it another try and let us know if you’re seeing the same error?
Sorry to hear you’re running into this issue. Could you let us know the sitename that you’re seeing this issue? For example: sitename.netlify.app. That’ll help us investigate further. Thanks!
Sorry that you’re also running into this issue. Could you also let us know the sitename that you’re seeing this issue? For example: sitename.netlify.app. That’ll help the support team investigate further. Thank you!
engage-flow-runtime.netlify.app is one such example. I figured out it was just when it’s specified in the UI. Regardless of whether I have it in the netlify.toml file, if I specified the Next.js runtime in the ui, I’d get the error.
I’ve managed to deploy successfully to staging and UAT, but for some reason my production site is still causing errors. Same error as last time - Plugin "@netlify/plugin-nextjs" must not be specified twice in the app
Site - www.mintyy.com.au
+ netlify deploy --site=$NETLIFY_SITE_ID_PRODUCTION --auth=$NETLIFY_AUTH_TOKEN --dir=.next --message="Deploying Production" --build --prod
Netlify Build
────────────────────────────────────────────────────────────────
❯ Version
@netlify/build 29.51.4
❯ Flags
{}
Configuration error
────────────────────────────────────────────────────────────────
Error message
When resolving config file /opt/atlassian/pipelines/agent/build/netlify.toml:
Plugin "@netlify/plugin-nextjs" must not be specified twice in the app
We also facing this issue with site ids: f416057f-dd98-4cc4-8fcd-c02f6ad44545, 116956ea-7ecc-4dfe-9717-c671d8758123 and ec265feb-bf84-4f7e-9a0e-4b2fb1813995.