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

Commit 029d2db

Browse files
authored
fix: increase default expires time to AWS pre-signed url operations (#283)
1 parent 2bde968 commit 029d2db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
};
4242
```
4343

44-
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.
44+
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.
4545

4646
### AWS setup
4747

src/gatsby-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function sourceNodes(
2121
{ actions: { createNode }, createNodeId, createContentDigest, reporter },
2222
pluginOptions: pluginOptionsType
2323
) {
24-
const { aws: awsConfig, buckets, expiration = 60 } = pluginOptions;
24+
const { aws: awsConfig, buckets, expiration = 900 } = pluginOptions;
2525

2626
// configure aws
2727
AWS.config.update(awsConfig);

0 commit comments

Comments
 (0)