divan/web/package.json
Anas Rashid 87cea30f28 Self-host Naskh and Nastaliq fonts (fixes font switch in Brave); ?font= URL option
- @fontsource/noto-naskh-arabic and noto-nastaliq-urdu bundled with the site; no Google
  Fonts request (Brave Shields blocked it, so the switch had nothing to switch to)
- ?font=nastaliq|naskh sets the reading font (shareable links)
Validated: both fonts render from local files in headless Chromium; no googleapis requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 21:09:26 +02:00

18 lines
443 B
JSON

{
"name": "divan-web",
"private": true,
"type": "module",
"description": "Divan website (Astro, server-rendered) over the Divan API",
"scripts": {
"dev": "astro dev --port 4200",
"build": "astro build",
"start": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^11.1.7",
"@fontsource/noto-naskh-arabic": "^5.3.0",
"@fontsource/noto-nastaliq-urdu": "^5.3.0",
"astro": "^7.3.8"
}
}