Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 6a0edc7

Browse files
authored
docs: improve readme on CI/CD
1 parent 2eea59d commit 6a0edc7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,12 @@ Users are encouraged to use this component instead of the `serverless-plugin`. T
543543

544544
See `examples/dynamodb-crud` for an example Todo application that interacts with DynamoDB. You can find a full list of examples [here](https://github.com/serverless-nextjs/serverless-next.js/tree/master/packages/serverless-component/examples)
545545

546-
#### [CI/CD] A new CloudFront distribution is created on every CI build. I wasn't expecting that
546+
#### [CI/CD] Multi-stage deployments / A new CloudFront distribution is created on every CI build. I wasn't expecting that
547547

548-
You need to commit your application state in source control. That is the files under the `.serverless` directory. Alternatively you could use S3 to store the `.serverless` files, see an example [here](https://gist.github.com/hadynz/b4e190e0ce10e5811cb462920a9c678f)
548+
1. You need to commit your application state in source control. That is the files under the `.serverless` directory. Although this is not recommended as it doesn't work well for multiple stages.
549+
2. Alternatively you could use S3 to store the `.serverless` files, see an example [here](https://gist.github.com/hadynz/b4e190e0ce10e5811cb462920a9c678f) or [here](https://gist.github.com/dphang/7395ee09f6182f6b34f224660bed8e8c) (uses multiple `serverless.yml` files)
549550

550-
The serverless team is currently working on remote state storage so this won't be necessary in the future.
551+
In the future, we will look to improve this by integrating it into the component itself. The serverless team is currently working on remote state storage so this won't be necessary in the future.
551552

552553
#### My lambda is deployed to `us-east-1`. How can I deploy it to another region?
553554

0 commit comments

Comments
 (0)