Changeset 7007d4c in Klonkt for src


Ignore:
Timestamp:
06/16/2026 03:16:52 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
baa2e59
Parents:
8453812
Message:

Branding: PWA id + npm package name prutfolio -> klonkt

PWA id-base klonkt-<slug>, package name klonkt, manifest name-fallback Klonkt.
Note: changing the id orphans existing PWA installs (no migration possible) ->
anyone who had the site installed as a PWA needs to reinstall it once
(data remains server-side).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r8453812 r7007d4c  
    260260  const startUrl = (base || '') + '/?source=pwa';
    261261
    262   // A stable identity per site so installs don't collide (Chromium uses `id`)
    263   const idBase = site?.slug ? `prutfolio-${site.slug}` : 'prutfolio';
     262  // A stable identity per site so installs don't collide (Chromium uses `id`).
     263  // NB: een id-wissel orphant bestaande PWA-installs (er is geen migratie die een
     264  // install over een id-verandering heen tilt) — wie een site al als PWA had,
     265  // moet 'm één keer opnieuw installeren. Data blijft server-side, dus niets kwijt.
     266  const idBase = site?.slug ? `klonkt-${site.slug}` : 'klonkt';
    264267
    265268  res.set('Cache-Control', 'no-cache');
    266269  res.json({
    267270    id: idBase,
    268     name: site?.title || 'Klonkt Hub Beta',
     271    name: site?.title || 'Klonkt',
    269272    short_name: (site?.title || 'Klonkt').slice(0, 12),
    270273    description: site?.description || site?.tagline || '',
Note: See TracChangeset for help on using the changeset viewer.