0.1.3 • Published 5 years ago
next-deployment v0.1.3
Cosmicbit: Next deployment scheme
This Component is on charge of deploying a Nextjs FE connected with an Appsync service.
Usage:
# serverless.yml
app:
component: next-deployment
inputs:
Stage: prod #Set the stage to use, could be also an env var as: ${env:STAGE}.
ApiName: my-api-name # The Appsync API to look for.
Config:
bucketName: my-bucket #optional. s3 bucket name.
domain: [sub, domain.com] #optional. Route53 domain
or
//serverless.js
module.exports = {
app: {
component: 'next-deployment',
inputs: {
Stage: 'prod', //Set the stage to use, could be also an env var as: ${env:STAGE}.
ApiName: 'my-api-name' //The Appsync API to look for.
Config: {
bucketName: 'my-bucket' //optional. s3 bucket name.
domain: ['sub', 'domain.com'] //optional. Route53 domain
}
},
}
}
NOTE:
You'll need yo bring patches/
folder into your project, and apply a patch-package.
We'll find a better solution as soon as https://github.com/serverless-components/aws-cloudfront/pull/20 gets merged