Skip to content

10.0.8 breaks plugin (can't read config target) #104

Closed
@laugharn

Description

@laugharn

Describe the bug
We are experimenting with using netlify-plugin-nextjs instead of next-on-netlify in a yarn monorepo. Unfortunately, when we attempt to deploy with the plugin, we get a Your next.config.js must set the "target" property to one of: serverless, experimental-serverless-trace. Update the target property to allow this plugin to run. message. Attached are two screen shots, one of the next.config.js in question, and the second of the message:

image

image

As you can see from the message screenshot, it is console logging This file is detected based on the next.config.js console.log statement, so it sees the correct file. I can also confirm that this is working if we use next-on-netlify directly.

Expected behavior
Successful deployment

Versions

  • Next.js: 10.0.8-canary.10
  • plugin (if installed at fixed version): @netlify/plugin-nextjs@2.0.1 via UI install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions