Credits
Updated from serverless-spa
yaml options
- distribution options are optional
- bucket name options are recommended
custom:
spa:
path: pathToSpaBuild
bucketDev: name of s3 bucket to sync to
distributionDev: cloudfront distribution ID
bucketProd: name of s3 bucket to sync to
distributionProd: cloudfront distribution ID
yaml example
custom:
spa:
path: ../client/build
bucketDev: app-webapp-dev
distributionDev: D39SDFKDSLJFDS
bucketProd: app-webapp-prod
distributionProd: D5SKDJKFLSJDF