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

Commit

Permalink
fix: increase default expires time to AWS pre-signed url operations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LpmRaven authored Dec 23, 2020
1 parent 2bde968 commit 029d2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
};
```

The value of expiration specifies the time after which signed requests to S3 will expire. The default value is 60 seconds. Feel free to increase if you have many or large images and start to see errors similar to "HTTPError: Response code 403 (Forbidden)" during build. This option is not compulsory.
The value of expiration specifies the time after which signed requests to S3 will expire. The default value is 15 minutes (the default for AWS pre-signed URL operations). Feel free to increase if you have many or large images and start to see errors similar to "HTTPError: Response code 403 (Forbidden)" during build. This option is not compulsory.

### AWS setup

Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function sourceNodes(
{ actions: { createNode }, createNodeId, createContentDigest, reporter },
pluginOptions: pluginOptionsType
) {
const { aws: awsConfig, buckets, expiration = 60 } = pluginOptions;
const { aws: awsConfig, buckets, expiration = 900 } = pluginOptions;

// configure aws
AWS.config.update(awsConfig);
Expand Down

0 comments on commit 029d2db

Please sign in to comment.