gatsby-source-notion-api
gatsby-source-notion-api copied to clipboard
image expired in one hour
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!
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.
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.