TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why a Static Site Generator?

2 pointsby thebaerabout 6 years ago
If you use a static site generator, especially to create a blog, why do you use it? Some reasons I&#x27;ve heard before are:<p>* Pages load faster * Hosting costs are low or free * Can write while offline * Can publish with a workflow you like (e.g. text editor &gt; commit &gt; push) * Can keep a history of changes (version control) * Posts start offline and are saved locally by default<p>Anything else?

1 comment

Nishchit14about 6 years ago
That&#x27;s a good question,<p>A static site is famous in developer community mostly, There are a couple of reasons like<p>1. developers are very handy with Github, so can directly write blogs or HTML pages and commit push in GitHub easily. No login required in traditional CMS (developers are a bit lazy)<p>2. No database required, Static data is just a file so It doesn&#x27;t require any databases. also, it can be managed with history via commit or branched.<p>3. hosting, Static site doesn&#x27;t need any CPU operation (RAM), It just files so simple file-storage is enough to host. Here GitHub pages, AWS-S3, Google Storage, Zeit serverless and other static storage providers having features to host directly via Git commit. So you can host it within a seconds with just a small command.<p>4. Faster development, It has less dependency like a database, third-party services, so we can develop it very fast than the traditional approach.<p>And working in a team is very productive because no extra setup needed. just clone the repo, change and commit. With Zeit you can deploy every branch for every user for staging purpose within a 30sec.<p>I am building <a href="https:&#x2F;&#x2F;firecamp.app" rel="nofollow">https:&#x2F;&#x2F;firecamp.app</a> with Nextjs serverless deployment feature (<a href="https:&#x2F;&#x2F;fc-web.nishchit14.now.sh" rel="nofollow">https:&#x2F;&#x2F;fc-web.nishchit14.now.sh</a> This is staging domain, It&#x27;ll be destroyed in future.)