-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: init ssr-opengraph #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use uniquery
and minipfs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good job, small things
ssr-opengraph/src/utils.ts
Outdated
// TODO: put 'rmrk' into Prefix type | ||
export type Chain = 'rmrk' & Prefix; | ||
|
||
export const endpoints: Record<Chain, string> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be imported also from static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest keeping it as it is. once we add rmrk
in static/types, we can import all endpoints from static https://github.com/kodadot/packages/blob/main/static/src/types.ts#L1
ssr-opengraph/src/utils.ts
Outdated
}; | ||
|
||
export const getNftById = async (chain: Chain, id: string) => { | ||
const client = getClient(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to use fetch on client you need pass prefix here 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I already added TODO here https://github.com/kodadot/workers/pull/41/files#diff-a17dc2c4fda697859be2b120d60f29831b5af50e3800aa7930fa3dcc861b325dR22-R23
for now not using client.fetch(query)
is because there is no rmrk
in the Prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rmrk prefix was replaced to ksm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oohh, ok will update that 🙏🏻
Socket Security Pull Request ReportDependency issues detected: If you merge this pull request, you will not be alerted to the instances of these issues again. 📜 Install scriptsInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts. Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.
Pull request report summary
Bot CommandsTo ignore an alert, reply with a comment starting with
Powered by socket.dev |
Somewhre on gaming nft marketplaces I've seen they've been pushing different numbers on card from collections, can create on that issue once I spot it again, that would be amazing to have it, otherwise looking forward to deploying this to beta & production |
@vikiival updated 🙏🏻🙏🏻🙏🏻 |
|
cc @preschian
|
eh, hhmm let's try to deploy it through github actions? |
oohh, you need to run |
fixed in 6ee53ca |
|
related kodadot/nft-gallery#5268
the method is quite similar
todo:
rmrk
to@kodadot1/static
?step to deploy:
prerender-opengraph
worker firstssr-opengraph
. to avoid routes conflict https://github.com/kodadot/workers/pull/41/files#diff-50d1a6082b03f808cc776ab435488ebf63e81e82829e73e9fc76d094f2d5199aR4additional notes:
kodadot.xyz
only