I am using Netlify to deploy my jekyll blog to GitHub Pages. I just got an alert that my 100GB monthly quota is about to run out?
…I find that either surprising or amazing.
I published a blog post last week that has had lots of views and contains multiple large JPG images. Today I have reduced their size by optimising them using JPEGmini, but perhaps it’s too little too late? I have 3 days remaining on my quota, so not a big deal either way.
So, I think I have misunderstood my usage of Netlify and where the buck stops?
By deploying using Netlify to GitHub Pages I assumed (likely incorrectly!) that:
the jekyll build would happen at Netlify
static pages would be sent to GitHub Pages
bandwidth would be from GitHub Pages (and so free as in beer).
That is clearly hosted at Netlify. My question for you is: Why do you think that is hosted at GitHub?
Note, even the custom domain (which you didn’t share yet so I’ve redacted the actual value), points to Netlify, not to GitHub:
$ dig +noall +answer <redacted custom domain>
<redacted custom domain> 300 IN CNAME keen-bhaskara-f5872f.netlify.app.
keen-bhaskara-f5872f.netlify.app. 20 IN A 126.96.36.199
keen-bhaskara-f5872f.netlify.app. 20 IN A 188.8.131.52
Again, the custom domain points to Netlify, not to GitHub, and this leaves me a little confused as to why you believed GitHub was hosting this site.
Did you think this routed to GitHub in some way? If so, why did you believe that? For example, are there instructions or documentation somewhere that imply this?
If you do find any documentation which would imply this was going to route to GitHub, I would recommend contacting the author of that documentation to have them correct it. If there is documentation at Netlify which implied this, please let us know and we will get that documentation changed.
This is my one and only Jekyll project. Originally it was all done on GitHub with my custom domain pointed at my GitHub Pages, until I wanted to use a certain plugin so I moved the deploy to Netlify after some external advise.
It’s difficult to give a reason for my misunderstanding, but it’s likely a combination of blog posts and tutorials and wording in various places.
So does Netlify also copy the build result files back to GitHub Pages part of the deploy? I see references to the word “upload” in the build/deploy text: what is being uploaded and to where?
This makes me think that for me to get free and unlimited bandwidth for my static site I should point my domain name at the GitHub Pages site and continue to use Netlify to deploy after changes to my GitHub repo.
If you use Netlify to build your site, it will be deployed as a Netlify site and this cannot be changed. So, even if you don’t promote your Netlify site address, if someone finds it and keeps on using it, it will still use up your bandwidth. You can try to deploy the site to GitHub pages from within Netlify, but I don’t know how that would work as I haven’t really explored GitHub Pages.
However, if you just want automatic builds and want to continue hosting on GitHub pages, I don’t see why you’d need Netlify. You can simply using GitHub Actions and deploy that to GitHub pages.
Then as I said, if you build at Netlify, the site will be live on Netlify. You can use some “hacks” to deploy it to GitHub pages from Netlify, but I’m not sure how well that’s supported. Even if you do that, the Netlify site would remain active (however, you can setup a redirect to take users to your GitHub pages site).
As I stated earlier, my GitHub Pages domain is already in sync (a mirror) with my Netlify domain. I don’t believe I’ve done anything special, or a “hack”, for that to be the case. Maybe it’s built-in to the Jekyll build process? That remains an unanswered question from above.
I understand this is a Netlify forum and my use case is sitting on the border between Netlify and GitHub Pages, so I appreciate the continued help.
I’ll repoint my custom domain to GitHub Pages and keep the build on Netlify, and see how it goes.