@chargebee/wingman-upload-screenshots
Upload preview screenshots to S3 and invalidate the matching CloudFront screenshots path.
npx @chargebee/wingman-upload-screenshots <screenshot-path> [more-screenshot-paths...]
The command reads the preview version from PREVIEW_VERSION, VERSION, or .preview-version in the current working directory.
Environment
Required AWS credentials are resolved by the AWS SDK credential chain. For local use, export:
export AWS_ACCESS_KEY_ID=<your key>
export AWS_SECRET_ACCESS_KEY=<your secret>
export AWS_DEFAULT_REGION=us-east-1
Optional overrides:
S3_BUCKET, default ui-previews
S3_PREFIX, default app-static-assets/cb-vue/<preview-version>/screenshots
SCREENSHOT_BASE_URL, default https://d28dyyxyym0o97.cloudfront.net
CF_DISTRIBUTION, default E2KIAG19CFHQD7
SKIP_CF_INVALIDATION=1 to skip CloudFront invalidation
PREVIEW_VERSION_FILE, default .preview-version