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 -- 2.51.2 From ce208f4844942213fe928cdd2d0b51e936033ff4 Mon Sep 17 00:00:00 2001 From: Shinya <13072231+myConsciousness@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:42:51 +0900 Subject: [PATCH 2/2] chore: Update AWS CodeBuild configuration for website deployment - Add directory change command to navigate to website folder before npm install - Ensure build process executes from correct working directory - Fix potential build failures due to incorrect working directory context --- website/buildspec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/website/buildspec.yaml b/website/buildspec.yaml index a2a96470a..4b3c3b1e5 100644 --- a/website/buildspec.yaml +++ b/website/buildspec.yaml @@ -5,6 +5,7 @@ phases: runtime-versions: nodejs: 24 commands: + - cd website - npm install build: