Closed petersalomonsen closed 4 months ago
Awesome development-- I saw this and I want to share some related details if they're helpful:
If "Index" is used instead of "app", then it will automatically get a url to HOT Telegram wallet. For example, pokethe.near/widget/Index has https://pokethe.bos.gg/ and https://t.me/herewalletbot/app?startapp=web-pokethe-bos-gg
I've been using "Index" from now on because of this. Although I wouldn't say it's a requirement at all, just a convenient feature.
bos-workspace also supports a "index" field in bos.config.json, see here -- it uses this index to initialize the src when passed a web-component dist, and can be used for building and deploying to web4, from a bos-workspace. Could this json config also influence a web4contract deploy?
@elliotBraem Hmm, the HOT link does not work for me. Does it work for you?
I missed this comment @frol -- you're right, it's not working for me anymore either.
Asking in the telegram group: @bosintg
Edit:
they've banned external links. Only a whitelist works
Get title and description for social media landing page from socialdb, by using web4 preloads querying social db.
You can verify the functionality in the deployment to
peterdevhub.near
where you can see that the description is set according to the data registered in socialdb.The preload url being used is:
https://rpc.web4.near.page/account/social.near/view/get?keys.json=[%22peterdevhub.near/widget/app/metadata/**%22]
where you can see that
name
anddescription
from the returned payload matches the title and description in the preview environment metadata tags.fixes #135