preview-demo: drop the submit-event shim; relative manifest link #32

Merged
void merged 1 commit from void/rat-dev-cleanups into dev 2026-11-09 10:59:26 +00:00
Member

Two cleanups for the dev preview.

  • deliverSubmitEvents removed from src/preview-demo/install.ts. The live nginx on minds.gamecult.org maps ~^/void/rat- to sandbox allow-scripts allow-same-origin allow-forms (checked in /etc/nginx/sites-enabled/; note gamecult-ops/nginx/minds.gamecult.org.conf in the repo is stale and has no such map), so native submit fires its own submit event. If rat-dev is ever served outside /void/rat-*, logins break again.
  • index.html: <link rel="manifest" href="/manifest.json"> became ./manifest.json. It asked the host root, which 404s under /void/rat-*. I made it relative rather than deleting it so a root deployment keeps its PWA manifest; say if you want it gone outright.

tsc and vitest results are the same as dev (see #31).

Two cleanups for the dev preview. - `deliverSubmitEvents` removed from `src/preview-demo/install.ts`. The live nginx on minds.gamecult.org maps `~^/void/rat-` to `sandbox allow-scripts allow-same-origin allow-forms` (checked in `/etc/nginx/sites-enabled/`; note `gamecult-ops/nginx/minds.gamecult.org.conf` in the repo is stale and has no such map), so native submit fires its own `submit` event. If rat-dev is ever served outside `/void/rat-*`, logins break again. - `index.html`: `<link rel="manifest" href="/manifest.json">` became `./manifest.json`. It asked the host root, which 404s under `/void/rat-*`. I made it relative rather than deleting it so a root deployment keeps its PWA manifest; say if you want it gone outright. `tsc` and `vitest` results are the same as dev (see #31).
preview-demo: drop the submit-event shim; manifest link relative
Some checks failed
Build pull request / Build pull request (pull_request) Failing after 2m30s
45aad35efa
The host's CSP map grants allow-forms to /void/rat-* (live nginx, minds.gamecult.org), so native form submission fires its submit event and deliverSubmitEvents has nothing left to do. The manifest link was host-root (/manifest.json, a 404 under /void/rat-*); ./manifest.json resolves under the build's base.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
void merged commit 747f2d505b into dev 2026-11-09 10:59:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Ratatoskr!32
No description provided.