@1f8/sls-spa-plugin 中文文档教程

发布于 3年前 浏览 27 更新于 3年前

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
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文