Fork anchor, strip all push notification code (APNs, FCM, WebPush), rename from anchor to mailship, add new database schema for subscriptions + events tables, and add HTTP API for email notification registration and NIP-9a relay push callbacks. - POST /subscription/email — register for email digests - DELETE /subscription/:key — unsubscribe - POST /notify/:id — NIP-9a relay push callback - GET /confirm?token=... — confirm email - GET /unsubscribe?token=... — unsubscribe Co-authored-by: mplorentz
12 lines
322 B
Bash
Executable file
12 lines
322 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Remove link overrides
|
|
node remove-pnpm-overrides.js package.json
|
|
node remove-pnpm-overrides.js web/package.json
|
|
|
|
# When CI=true as it is on render.com, removing link overrides breaks the lockfile
|
|
pnpm i --no-frozen-lockfile
|
|
(cd web && pnpm i --no-frozen-lockfile)
|
|
|
|
# Build everything
|
|
pnpm run build
|