Changeset 942028f in Klonkt for src/server.js


Ignore:
Timestamp:
06/14/2026 04:01:38 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
2b52bfb
Parents:
9b36f45
Message:

app: remove APK/TWA variant — PWA-only install

Robin: only PWA possible, no APK. Removed:

  • src/assets/apk/soundfabrics.apk + src/assets/.well-known/assetlinks.json
  • /.well-known/assetlinks.json route (server.js) — only needed for TWA
  • data-apk-url on the install button (footer.ejs)
  • the 'Option B — APK' branch + Option A/B framing in install-app.js (now PWA-only)

install-app.js?v bump (without cache buster the old version would keep
being served).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r9b36f45 r942028f  
    118118app.use('/media', express.static(process.env.MEDIA_PATH || './storage/media'));
    119119
    120 // P64 — TWA / digital-asset-links: must be served at /.well-known/assetlinks.json
    121 // at the site root with Content-Type: application/json. Without this Android
    122 // shows the URL bar inside the installed PrutFolio app.
    123 app.get('/.well-known/assetlinks.json', (req, res) => {
    124   res.type('application/json').sendFile(
    125     path.join(__dirname, 'assets', '.well-known', 'assetlinks.json')
    126   );
    127 });
     120// (Verwijderd) TWA / digital-asset-links — alleen nodig voor de APK/TWA-variant.
     121// Klonkt is PWA-only; geen assetlinks.json meer.
    128122
    129123initializeDatabase();
Note: See TracChangeset for help on using the changeset viewer.