Publish CLAUDE.md snapshot at /CLAUDE.md, linked from footers
All checks were successful
Deploy to S3 / deploy (push) Successful in 1m45s

Serve it as text/plain on deploy so browsers display the raw text
instead of downloading; add .dockerignore so local image builds can't
ship stale _site or host node_modules.
This commit is contained in:
2026-07-19 00:12:25 +00:00
parent c33e4ce861
commit 605a945648
7 changed files with 118 additions and 1 deletions

View File

@@ -9,13 +9,15 @@ build:
dev:
docker run --rm -v $$(pwd):/app -w /app -p 8080:8080 node:22-alpine sh -c "yarn install && yarn dev --port 8080"
# CLAUDE.md is re-uploaded as text/plain: sync guesses text/markdown for .md,
# which Firefox downloads instead of displaying in the tab.
deploy: build
docker run --rm \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e AWS_DEFAULT_REGION \
unprompted \
aws s3 sync /site $(S3_BUCKET) --delete
sh -c "aws s3 sync /site $(S3_BUCKET) --delete && aws s3 cp /site/CLAUDE.md $(S3_BUCKET)/CLAUDE.md --content-type 'text/plain; charset=utf-8'"
invalidate:
ifdef CF_DISTRIBUTION_ID