Skip to content

Commit

Permalink
Update hosting_nextjs.yml
Browse files Browse the repository at this point in the history
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
  • Loading branch information
damianzm-aws authored Oct 31, 2024
1 parent 2cfde47 commit 47b2021
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/build_config_templates/hosting_nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47b2021

Please sign in to comment.