@1f8/sls-spa-plugin 中文文档教程
Credits
从 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
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