Skip to content

Monorepo documentation is incomplete/unclear #7781

Open
@sameera

Description

@sameera

Describe the content issue:

I'm using NX for my monorepo and am following the instructions https://docs.amplify.aws/nextjs/deploy-and-host/fullstack-branching/monorepos/

I found that if I follow the following steps to setup the monorepo, the Amplify Console will incorrectly detect the framework of the backend project and actually not identify the backend project is an Amplify project.

Create the monorepo (npx nx create-nx-workspace --preset=next)
cd to the monorepo folder and npm create amplify@latest in /packages/backend
Go to Amplify console and select packages/backend as the monorepo folder for the backend app. In this case, you'll see that the console will not understand this to be amplify Gen 2 but, will detect next.js as the framework
The console correctly identifies the framework as Amplify Gen 2 if I follow the following steps:

Create the nx workspace in a subfolder of the repo (say, "myworkspace")
Create the Amplify inside the subfolder.
Set myworkspace/packages/backend as monorepo root for backend app. In this case, everything works fine.

What is causing this to happen? How can we get the framework to be identified correctly?

URL page where content issue is:
https://docs.amplify.aws/nextjs/deploy-and-host/fullstack-branching/monorepos/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions