Skip to content

Commit

Permalink
fix: remove static assets, get gfonts roboto versions
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex committed Apr 4, 2023
1 parent e566845 commit dd096ca
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@fastify/helmet": "^10.1.0",
"@fastify/rate-limit": "^8.0.0",
"@fastify/static": "^6.9.0",
"@fontsource/roboto": "^4.5.8",
"@nestjs/axios": "^2.0.0",
"@nestjs/common": "^9.3.12",
"@nestjs/config": "^2.3.1",
Expand Down
Binary file removed public/Roboto-Regular.ttf
Binary file not shown.
Binary file removed public/favicon.png
Binary file not shown.
3 changes: 2 additions & 1 deletion src/social-card/social-card.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export class SocialCardService {

const template = html(userProfileCard(avatarUrl, username, userLangs(langs), userProfileRepos(repos)));

const robotoArrayBuffer = await readFile("public/Roboto-Regular.ttf");
const robotoArrayBuffer = await readFile("node_modules/@fontsource/roboto/files/roboto-latin-ext-400-normal.woff");

const svg = await satori(template, {
width: 1200,
height: 627,
Expand Down

0 comments on commit dd096ca

Please sign in to comment.