admin管理员组

文章数量:1318318

I’m currently working on deploying a Turborepo-based monorepo to AWS Amplify, and I’m running into some issues. My setup includes Next.js 15 in the monorepo structure, and the Amplify build successful generated but when i click on link fails with 500 error Here are the key issues I’m facing: logs list in cloud watch node:internal/modules/cjs/loader:1228 2025-01-20T10:10:05.164Z Error: Cannot find module ‘next/dist/server/lib/start-server.js’ here is build settings file node version 22 version: 1 applications:

frontend: phases: preBuild: commands: version: 1 applications:

  • frontend: phases: preBuild: commands: - nvm use 22 - yarn install build: commands: - yarn run build --filter=appname artifacts: baseDirectory: apps/appname/.next files: - '/*' cache: paths: - node_modules//* - .next/cache//* - apps/appname/node_modules//* - apps/appname/.next/cache/**/* buildPath: / appRoot: apps/appname

本文标签: vercelIssue Deploying Turborepo Monorepo with Nextjs 15 to AWS AmplifyStack Overflow