Skip to content

Docs: Upgrade Nextjs with --api Usage #77238

@prashantchothani

Description

@prashantchothani

What is the documentation issue?

With 15.2.2, Nextjs can be used as a backend with --api option while installing. Like us, many were using Nextjs as a backend API and that is why I was chasing on having this option. Finally it is there. When i tried to upgrade the current project by removing React and React DOM in package.json making it exactly same as the fresh project, the build is not happening. The error I am getting is : Error: Cannot find module 'react'. How do we change our current project which does not have any front end component to --api project ? This needs to be documented please.

Is there any context that might help us understand?

Upgrading Nextjs backend project to --api

Does the docs page already exist? Please link to it.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions