Skip to content

Update docs for existing Next.js websites on Netlify to include basic build settings #271

Closed
@DaveBitter

Description

@DaveBitter

Is your feature request related to a problem? Please describe.
I had an existing site on Netlify that didn't use this awesome plugin yet where I just used Next.js static site generation (SSG). For that, you usually configure two deploy settings in Netlify:

  • Build command: npm run build && npm run export
  • Publish directory: out

What I didn't realize is that I needed to change the build command to just npm run build and leave the publish directory blank. It might be an obvious thing for people, but I couldn't find this documented anywhere.

Describe the solution you'd like
I think it would be great to document these two deploy settings in the README under Installation and Configuration -> UI-based installation for existing Next.js sites. I'm more than happy to pick this up.

Describe alternatives you've considered
An alternative is to close this issue and have it as a reference. I tried searching the issues for this and couldn't find it.

Additional context
n/A

Thanks for this awesome plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions