feat: name the site with SITE_TITLE, and the tab after the community #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/site-title"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SITE_TITLEin.env(defaultkoto) names the site where the server has not been asked yet. At container startrender-config.shwrites it into index.html (<title>,apple-mobile-web-app-title), the manifest (name,short_name) andconfig.json(siteTitle). The image keeps the build's index.html and manifest in/etc/kotoand renders from those, so a restart or a changed value starts afresh. The value is escaped for HTML and JSON.SITE_TITLEafter logging out.siteTitlefrom the config the service worker has cached, falling back to koto.SITE_TITLEas its name..env.exampleanddocs/deployment.mddescribe the setting. Previews get nositeTitleand stay "koto".Existing installs: nothing changes until
SITE_TITLEis set; thendocker compose up -d --build. An installed home-screen app may keep its old name until it is re-added; that is up to the phone.Tested:
tsc,oxlint, unit tests. I built the image and ran it withSITE_TITLE=ちひろ "&" <ノート> a\b|cand with it empty: index.html, the manifest and config.json came out correctly escaped (both JSON files parse), stayed correct after a restart, and nginx served them. I could not run the browser E2E: on this host (swap full) the first page load timed out at 30 s, and the same happened on unchanged main.Closes #19
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.