Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
chore: remove region plugin option
Browse files Browse the repository at this point in the history
The option is not required anymore when using pre-signed URLs
  • Loading branch information
Robin Metral committed May 21, 2020
1 parent ec90482 commit d870d3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
run: yarn e2e
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ credentials as
// configure dotenv
// see https://www.gatsbyjs.org/docs/environment-variables
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
path: `.env.${process.env.NODE_ENV}`,
});

module.exports = {
Expand All @@ -32,12 +32,11 @@ module.exports = {
aws: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: process.env.AWS_REGION
},
buckets: ["my-bucket", "my-second-bucket"]
}
}
]
buckets: ["my-bucket", "my-second-bucket"],
},
},
],
};
```

Expand Down
1 change: 0 additions & 1 deletion examples/gatsby-starter-source-s3/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
aws: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: process.env.AWS_REGION,
},
buckets: [
"gatsby-source-s3-example",
Expand Down
1 change: 0 additions & 1 deletion src/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ type pluginOptionsType = {
aws: {
accessKeyId: string;
secretAccessKey: string;
region: string;
};
buckets: string[];
};
Expand Down

0 comments on commit d870d3c

Please sign in to comment.