Comments (3)
Hi, the problem is that the S3 sync has no easy way to figure out if a file should be updated. Currently it checks to see if the file is newer or if the size has changed. When building the site on GitHub before the sync, all the files will have a newer date than what's in the bucket, so all the files gets uploaded.
I can experimentally add an option so that if the file size hasn't changed then the file won't be copied. This should cover 99% of files but the problem is that files which were updated but stayed the same size would be missed from the copy. For example editing one letter on a page would change the content but not the page size, so might be missed in the sync.
I can't think of any other solutions but I think some of the Gatsby hosting can handle incremental changes if that's useful?
from gatsby-s3-action.
Hi, yes I think the size only comparison would be useful as a option. In my case the bulk of pages never change as they're one time blog posts. The greatest amount of change therefore is from new blog posts and major page changes, both of which would be covered by the use case and greatly optimise the build.
Gatsby hosting did handle incremental change yes but they're shutting down their service as they move to Netlify which doesn't push sites to S3 hosting.
from gatsby-s3-action.
v2.1.0 should address this
Please try adding only-size-changed: true
to your existing gatsby-s3-actions options 🙂
from gatsby-s3-action.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-s3-action.