From 47b2021e92ff4832a8340fc78b3eca937b102b8f Mon Sep 17 00:00:00 2001 From: Damian McNamara <99932320+damianzm-aws@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:49:57 +1100 Subject: [PATCH] Update hosting_nextjs.yml Next.js needs Node 18.18 or later https://nextjs.org/docs/getting-started/installation `next export` has been removed in favor of 'output: export' in next.config.js. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports --- resources/build_config_templates/hosting_nextjs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/build_config_templates/hosting_nextjs.yml b/resources/build_config_templates/hosting_nextjs.yml index 29b46e6..82e884f 100644 --- a/resources/build_config_templates/hosting_nextjs.yml +++ b/resources/build_config_templates/hosting_nextjs.yml @@ -3,10 +3,9 @@ version: 0.2 phases: build: commands: - - n install 18.17.0 + - n install 18.18.0 - npx npm install - npx next build - - npx next export - cd out - echo aws s3 cp ./ s3://$DEST_BUCKET_NAME/$CODEBUILD_RESOLVED_SOURCE_VERSION/ --recursive #don't change this line - aws s3 cp ./ s3://$DEST_BUCKET_NAME/$CODEBUILD_RESOLVED_SOURCE_VERSION/ --recursive #don't change this line