Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created December 4, 2020 21:05
Show Gist options
  • Save sergueyarellano/29ed395dedc959f6e07c9ade5b5edf10 to your computer and use it in GitHub Desktop.
Save sergueyarellano/29ed395dedc959f6e07c9ade5b5edf10 to your computer and use it in GitHub Desktop.
plugins:
- serverless-s3-sync
custom:
s3Sync:
- bucketName: swagger-site-${opt:stage, 'dev'}
localDir: swagger-ui-dist
deleteRemoved: true # optional, indicates whether sync deletes files no longer present in localDir. Defaults to 'true'
acl: public-read # optional
followSymlinks: true # optional
defaultContentType: text/html # optional
params: # optional
- index.html:
CacheControl: 'no-cache'
- "*.js":
CacheControl: 'public, max-age=31536000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment