r/statichosting • • 8h ago

Static sites can still leak secrets during the build

1 Upvotes

I always thought static hosting meant there wasn’t much to worry about when it came to secrets. Then it clicked that the build itself can still use private cms tokens, api keys, and environment variables. If something is configured badly, those can end up inside generated js or other public files.

So now I think of the final build folder as something that should be checked too, not just trusted because ci made it. A quick secret scan before deploy seems like a pretty easy habit to add.


r/statichosting • • 2d ago

How many deploys back do you keep old hashed assets on a static host?

3 Upvotes

I carry the last few builds' css and js forward into each new deploy so cached html never 404s on a file that's gone. It works, but the output keeps growing and I never picked a number on purpose. Right now I keep the last five, which has the assets folder sitting around 40mb on a site that's maybe 6mb of actual content.

What are you running, by deploy count or by age? And has anyone actually caught this in logs, or is the html window short enough that it never really bites?


r/statichosting • • 3d ago

Are custom domains and DNS management still a pain for anyone else?

10 Upvotes

is it just me or you also trip up the dns and custom domain configuration? i mean, setting up a new site is the easy part but this is different overall. between nameservers, DNS propagation, SSL validation, redirects, and provider-specific requirements, it sometimes feels like there are more moving pieces than there should be. really curious how everyone is handling this. have u found a registrar or dns provider combination that makes the process less hassle or is dealing with its quirks just something weve all accepted at this point?

would really appreciate to hear what's worked well for others


r/statichosting • • 4d ago

how do you actually verify redirect rules before migrating a site?

3 Upvotes

when moving an older site to static hosting, redirect rules seem easy to underestimate.

it's not just redirecting one old homepage url. there might be hundreds of old slugs, trailing-slash variations, query parameters, and urls that already redirect somewhere else. a migration can look fine when you manually test five pages but still leave a bunch of old links broken.

does anyone have a good way to validate an entire redirect table before switching the domain over?

i'm thinking of testing a list of old urls against the new deployment and checking for unexpected 404s, redirect chains, and loops. do you automate that as part of ci, or is there a better approach for catching these problems before launch?


r/statichosting • • 4d ago

What are my options for free simple web analytics?

11 Upvotes

Hello. I have some simple sites that are using Hugo in conjunction with a Github repository, hosted on Cloudflare Pages. I'm looking for a simple, more reliable and lightweight analytics solution than Cloudflare Web Analytics.

Cloudflare Web Analytics is server side so it picks up every load, even from bots. I'm wondering if there's a better option that'll also allow me to filter myself out. I don't want to use Google Analytics, something simpler and more light weight.

I found Plausible which I can see is free if you self host, but I'm not sure if that's possible with my current setup?


r/statichosting • • 5d ago

J'ai créé mon site sans CMS : un petit générateur Python, un éditeur local que j'utilise depuis mon iPad via un VPN, et une étape de publication FTP sécurisée.

2 Upvotes

Contexte : Je suis développeur indépendant (France) et je crée des petits jeux de logique pour Android. J’avais besoin d’un site web pour les présenter. Je ne voulais ni WordPress, ni base de données, ni chaîne de compilation à gérer. J’ai donc créé la solution la plus simple possible, avec Claude Code au développement, sous ma direction.

L’approche

  • Le site est entièrement statique. Un simple script Python (bibliothèque standard uniquement, sans dépendances) le génère à partir de fichiers de données bruts : un fichier JSON par jeu, des fichiers texte pour les pages, des modèles HTML, une feuille de style et quelques lignes de JavaScript.
  • Tout est versionné avec Git, et le dossier généré n’est jamais modifié manuellement.
  • Une version française/anglaise a été ajoutée de la même manière : le générateur crée les deux versions à partir des mêmes données, les textes anglais sont dans un dossier séparé, et il existe un sélecteur de langue (pas de redirection automatique, volontairement). Comment j'écris et publie
  • Écriture : Je modifie les textes, les pages de jeu et les paramètres dans un petit éditeur local qui s'exécute dans le navigateur. Il s'agit simplement d'un formulaire superposé aux fichiers de données. Claude Code gère le code, les traductions et les vérifications ; je décide, je lis et je valide.
  • Publication : Je clique sur « Générer », je regarde l'aperçu, puis je clique sur « Publier ». Le script de publication envoie uniquement les fichiers modifiés via FTPS vers un hébergement mutualisé, ne supprime jamais rien à distance et refuse de s'exécuter s'il détecte une ancienne installation WordPress dans le dossier cible.
  • Les images de partage (1200×630) et les balises sociales/SEO (Open Graph, canonique, hreflang, JSON-LD) sont également générées.

Où cela s'exécute et comment j'y accède

  • L'éditeur et mes autres outils fonctionnent sur un Mac mini à la maison et se lancent automatiquement. Je les consulte depuis mon iPad via un VPN privé (Tailscale, qui utilise WireGuard en interne), donc rien n'est exposé sur Internet. Le site public se limite à la page statique hébergée.

Mesure sans suivi

Un compteur PHP d'une soixantaine de lignes sur le serveur enregistre uniquement les totaux mensuels : pages vues, utilisation d'un mini-jeu et l'attribut ?src=" de chaque lien publié, ce qui me permet d'identifier le canal d'origine des visiteurs. Aucun cookie, aucune adresse IP, aucun identifiant visiteur.

Ce que je ferais différemment : j'aurais prévu la version anglaise dès le départ et j'aurais ajouté des vérifications automatisées sur les pages générées plus tôt. Voici le résultat, avec un mini-jeu de mélange de couleurs sur la page d'accueil : https://dpdmb-creation.fr/en/?src=r-selfhosted

Je suis ravi de répondre à vos questions, quel que soit le point abordé, ou de savoir comment vous configureriez le VPN et l'éditeur.


r/statichosting • • 5d ago

do small static websites really need preview deployments

9 Upvotes

for smaller client projects, i usually make changes locally, check them then push everything to the live site. ive noticed that platforms like netlify and cloudflare pages offer preview deployments, which let you review canges thru separate url before they reach production. this seems useful esp. when a client needs to check content or approve layout changes. but for a 5-10 page website, im not sure how necessary it is to have a separate preview or staging workflow.

for those working on smaller static sites, do you use preview deployments regularly or is testing locally before pushing usually enough? do you find that clients use preview links to review changes or does it just add another step to the process


r/statichosting • • 5d ago

How often do you update dependencies in your static site projects?

4 Upvotes

i know keeping packages updated is important, but updating everything too often can sometimes introduce new problems. do you have a regular schedule for dependency updates, or do you usually wait until there’s a security fix or a specific reason to update something?


r/statichosting • • 7d ago

Can preview deployments accidentally get indexed?

8 Upvotes

If every branch gets its own public preview url, what stops google from finding and indexing it? Especially when the content is almost identical to production. Do you automatically add noindex to every non-production build, put previews behind auth, or just rely on the urls being obscure? Also curious if anyone has actually had a staging or preview site show up in search results.


r/statichosting • • 7d ago

Tool, or technique, to compare local and server versions of a massive static site?

Thumbnail reddit.com
2 Upvotes

r/statichosting • • 9d ago

Hugo built pages for every tag; WTD?

2 Upvotes

I've got a personal blog on hugo with about two hundred posts, and I recently looked at the sitemap and realized how many pages I didn't write. Hugo builds a page for every single tag, and since I've been pretty loose about tagging over the years, there are tons of tags that only have one post, so the site has hundreds of tag pages that each list one link and nothing else.

It isn't breaking anything as far as I can tell, but it bugs me. They show up in search console as discovered but not indexed, which I assume means google doesn't think they're worth much either, and they make the sitemap look way bigger than the real site.

I can see a few ways to deal with it. I could clean up the tags by hand and merge the one offs into broader ones, which is probably the right answer but sounds tedious (which I may or may not have time for right now). I could turn off tag pages completely and keep the tags as plain labels. Or I could leave them in and add a noindex to any tag page with fewer than a few posts, though I'm not sure how to do that cleanly in the templates without writing a bunch of conditional logic.

Has anyone dealt with this in hugo? What did you do?
TYIA!


r/statichosting • • 10d ago

do you keep large downloadable assets in the same repository as the site?

5 Upvotes

hey guys!!

for websites that offer pdfs, demo zips, images, or other downloadable files, where do you usually store them? do you keep everything in the same website repository or use a separate storage service?

keeping everything in one place makes things easier to manage, but large files can make the repository bigger and slower to work with. using separate storage can help, but it also means having another thing to manage.

how do you handle this when a website starts having more downloadable files?

also, do you use different urls when updating files, or do you keep the same url and just replace the file? keeping the same url seems easier, but it might cause caching problems when the file gets updated.

thank you!


r/statichosting • • 10d ago

Site rebuilding during a Google core update

Thumbnail reddit.com
1 Upvotes

r/statichosting • • 10d ago

A static site handoff needs an owner for the services behind its buttons

2 Upvotes

Disclosure: I work on Dashform and Yoya, in forms and scheduling. This is a handoff checklist for client websites, not a recommendation to choose either product.

A static site can be easy to deploy while its contact form or booking button depends on an account nobody remembers owning. I’d include a small service handoff sheet alongside the repository.

For each visitor action, record:

• The public page and the exact button or form to test.

• The external service involved and the account owner.

• Who receives the submission or booking, and who can change that destination.

• Which client person handles renewal or plan-limit notices.

• What a visitor should do if that service is unavailable.

No passwords on the sheet—just where authorized people manage access.

Then do one fictional end-to-end test with the client present. Start on the public site, submit an unmistakably labeled test enquiry or make a test booking, and have the client locate the resulting record themselves. A developer seeing it in their own inbox does not prove the client can operate the site after handoff.

I’d also ask the client to make one ordinary change, such as updating the notification recipient or blocking an unavailable date, in the appropriate service. Record which parts they can do independently and which still require the developer. If the answer is ‘message me’, that is an ongoing support arrangement worth making explicit.

This is separate from backing up the site source. A repository can preserve the page and its link without documenting who runs the service at the other end.

What do you normally hand over for these dependencies: a short runbook, a screen recording, or an ongoing maintenance agreement? I’m particularly interested in what a small-business owner can actually use six months later.


r/statichosting • • 11d ago

how do you decide which screen sizes are worth testing?

5 Upvotes

after my last post about cross-browser testing, a few comments brought up something i hadnt really considered: display scaling and browser zoom can also affect how a website looks, even when the css is working as expected. i usually test responsive layouts at common mobile, tablet, and desktop widths, but i rarely check what happens when someone uses 125% or 150% display scaling on windows, or has their browser zoom set differently.

i know these arent exactly the same thing but i both can change the available viewport space and affect how text and elements fit together.

for smaller client websites, do you actually test different scaling and zoom settings, or is checking a few viewport widths usually enough? have you ever run into a layout issue that only appeared when someone changed their display or browser settings?


r/statichosting • • 12d ago

What appointment booking system do you use for your client sites?

11 Upvotes

I build static websites for small businesses and am looking for an appointment booking system I can recommend and set up for clients.

Ideally something free or low-cost that’s easy to embed or link to, and simple enough for clients to use.


r/statichosting • • 12d ago

Is keeping everything in Git enough for backing up a static website?

3 Upvotes

since most static site projects already use Git, it seems like a good way to keep track of both code and content. but I’m wondering if relying on a remote repository is enough in the long run.

do you keep separate backups of your content and assets, or is your Git repository usually all you need?


r/statichosting • • 13d ago

Can two successful static builds deploy in the wrong order?

3 Upvotes

I've been thinking about what happens when two commits trigger builds close together. Commit a starts building, then commit b starts a minute later. B finishes first and goes live, but then the slower a build finishes afterward and replaces it with the older version.

For people deploying static sites through ci, do you cancel older builds when a newer commit starts, or check the commit before publishing? Curious how often this actually happens in real projects.


r/statichosting • • 14d ago

What’s your workflow for building static websites?

9 Upvotes

I’m curious about how others approach building static sites. Do you prefer frameworks like Astro, Hugo, or plain HTML/CSS? Also where do you guys find inspiration for layouts and design? Would love to hear some tips and recommendations!


r/statichosting • • 14d ago

My move from WordPress to Git and Markdown (Hugo, Blowfish and Cloudflare)

Thumbnail
reddit.com
5 Upvotes

r/statichosting • • 15d ago

Blog site problems

7 Upvotes

I finally sat down to fix the rss feed on my old blog, and I’ve got two questions.

The first is full content vs. summaries. We want people to come to the site, so my instinct is to only put a short excerpt in the feed. But I read most things through a feed reader myself and I hate when I have to click through just to finish a post. I’ve been leaning toward full content since the site has no ads and nothing to lose, but I’m not sure if I’d regret getting fewer visits.

The second is how a few of the older posts use relative links and image paths in the markdown, which work fine on the site. In the feed they break, because a reader has no idea what domain they belong to. I ended up running the content through a step that rewrites everything to absolute urls before it goes into the feed, but it feels like a patch, and I’m not sure I caught every case like srcset or links inside raw html.

Does anyone have a clean way to handle the absolute url problem, or do you just write absolute links in the content from the start? Also curious what most of you do about the full vs. summary thing for blogs?


r/statichosting • • 16d ago

source maps on production static sites

4 Upvotes

hey guys!

for those using error tracking on frontend-heavy static sites, do you upload source maps to your error monitoring service and exclude them from the public deployment?

i'm trying to understand the usual trade-off here. minified stack traces are barely useful when you're debugging an issue, but publicly served source maps can expose source structure, comments, and original filenames.

i'm not worried about someone magically getting access to secrets just from a source map. it's more about avoiding unnecessary exposure while keeping production errors debuggable.

what's your setup for this? are private source map uploads straightforward with your build pipeline, or have you found another approach that works better?


r/statichosting • • 18d ago

Do you prefer managing DNS yourself or letting your hosting provider handle it?

1 Upvotes

i’ve worked with custom domains on static sites, and DNS setup is usually straightforward once everything is configured. still, there are a few things that can go wrong when changing records or moving providers. do you prefer keeping DNS with a separate provider or using the hosting platform’s built-in options?


r/statichosting • • 19d ago

testing websites on different browsers

5 Upvotes

most of the time, i build and check websites using chrome. its convenient but ive started wondering how much testing im missing by sticking to one browser, if there are any. for small websites, do you usually check on firefox and safari before calling a project finished? or do you focus on the browsers your clients' visitors are most likely to use. been wondering how much cross-browser testing people actually do for smaller projects esp. when time and budget are limited


r/statichosting • • 20d ago

When does a static website become harder to manage?

3 Upvotes

I’m still learning about static hosting, and I’m curious about how things work as a website grows. Static sites seem pretty easy to set up at first, but does managing them get harder when you add more pages and features? Do you usually stick with static hosting, or eventually move to something else? Thanks!