Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image expired in one hour #17

Open
jerry2714 opened this issue May 7, 2022 · 2 comments
Open

image expired in one hour #17

jerry2714 opened this issue May 7, 2022 · 2 comments

Comments

@jerry2714
Copy link

Hi, I have noticed that image from notion is provided as s S3 resource with 1 hour expiration time, so I have to rebuild the site every hour to keep the image shows up.Is it possible to keep the image in the build to solve the expiration issue?
Thank you!

@conradlin
Copy link

Ditto on this. I currently just run an automation to rebuild my site on vercel every hour, and make sure on each build the client will also refresh (otherwise there will be dead links). Excited to see if there are better work arounds.

@jerry2714
Copy link
Author

I didn't notice that there is a solution in README.md. The createRemoteFileNode from gatsby-source-filesystem can keep the image in local and generate a file node with a publicURL field. We can just replace the remote URL of images in the content with the publicURL to solve this problem. @conradlin I think it might be a good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants