Read Afia AI credentials from platform admin settings.
Deploy Ladill Link / deploy (push) Successful in 58s

Link Afia now resolves provider, model, and API keys from ladilldb.platform_settings like the monolith, with .env fallbacks for local dev.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-27 14:34:43 +00:00
co-authored by Cursor
parent 5a3631cd2e
commit 29993040bd
7 changed files with 159 additions and 5 deletions
+8
View File
@@ -34,6 +34,14 @@ php artisan passport:client \
Set `BILLING_API_KEY_LINK` and `IDENTITY_API_KEY_LINK` on both monolith and this app.
Grant read access to platform AI settings:
```bash
sudo mysql -e "GRANT SELECT ON ladilldb.platform_settings TO 'ladill_link'@'127.0.0.1'; FLUSH PRIVILEGES;"
```
Afia reads `ai_*` keys from `platform_settings` (same as ladill.com admin). Optional `AFIA_API_KEY` in `.env` overrides for local dev.
## Legacy URLs
`https://ladill.com/q/{code}` continues to work for existing QR and storefront codes. New links use `https://ladl.link/{code}`. Unknown slugs on ladl.link fall back to the legacy resolver.