diff --git a/website/buildspec.yaml b/website/buildspec.yaml new file mode 100644 index 000000000..a2a96470a --- /dev/null +++ b/website/buildspec.yaml @@ -0,0 +1,26 @@ +version: 0.2 + +phases: + install: + runtime-versions: + nodejs: 24 + commands: + - npm install + + build: + commands: + - npm run build + + post_build: + commands: + - aws s3 sync ./build s3://$S3_ORIGIN_BUCKET/ --delete + - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DIST_ID --paths "/*" + +artifacts: + files: + - 'build/**/*' + name: BuildArtifact + +cache: + paths: + - 'node_modules/**/*' \ No newline at end of file