Deploying a Next.js app in a monorepo - AWS Amplify Hosting

Deploying a Next.js app in a monorepo

Amplify supports apps in generic monorepos as well as apps in monorepos created using npm workspace, pnpm workspace, Yarn workspace, Nx, and Turborepo. When you deploy your app, Amplify automatically detects the monorepo build framework that you are using. Amplify automatically applies build settings for apps in an npm workspace, Yarn workspace or Nx. Note that pnpm and Turborepo apps require additional configuration. For more information, see Monorepo build settings.

For a detailed Nx example, see the Share code between Next.js apps with Nx on AWS Amplify Hosting blog post.