Skip to content

Commit

Permalink
fix: [twemoji] Migrate from MaxCDN to cdnjs (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks committed Jan 12, 2023
1 parent 3e26862 commit 0df9666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -290,7 +290,7 @@ await satori(
{
...,
graphemeImages: {
'🤯': 'https://twemoji.maxcdn.com/v/13.1.0/svg/1f92f.svg',
'🤯': 'https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f92f.svg',
},
}
)
Expand Down
2 changes: 1 addition & 1 deletion playground/utils/twemoji.ts
Expand Up @@ -33,7 +33,7 @@ function toCodePoint(unicodeSurrogates: string) {

export const apis = {
twemoji: (code: string) =>
'https://twemoji.maxcdn.com/v/latest/svg/' + code.toLowerCase() + '.svg',
'https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/' + code.toLowerCase() + '.svg',
openmoji: 'https://cdn.jsdelivr.net/npm/@svgmoji/openmoji@2.0.0/svg/',
blobmoji: 'https://cdn.jsdelivr.net/npm/@svgmoji/blob@2.0.0/svg/',
noto: 'https://cdn.jsdelivr.net/gh/svgmoji/svgmoji/packages/svgmoji__noto/svg/',
Expand Down

1 comment on commit 0df9666

@vercel
Copy link

@vercel vercel bot commented on 0df9666 Jan 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.