Skip to content

Commit 47b2021

Browse files
authored
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
1 parent 2cfde47 commit 47b2021

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/build_config_templates/hosting_nextjs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ version: 0.2
33
phases:
44
build:
55
commands:
6-
- n install 18.17.0
6+
- n install 18.18.0
77
- npx npm install
88
- npx next build
9-
- npx next export
109
- cd out
1110
- echo aws s3 cp ./ s3://$DEST_BUCKET_NAME/$CODEBUILD_RESOLVED_SOURCE_VERSION/ --recursive #don't change this line
1211
- aws s3 cp ./ s3://$DEST_BUCKET_NAME/$CODEBUILD_RESOLVED_SOURCE_VERSION/ --recursive #don't change this line

0 commit comments

Comments
 (0)