Skip to content

Commit

Permalink
replace cloudflare with OG
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Apr 12, 2024
1 parent ac7007a commit 68229f6
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 9 deletions.
202 changes: 195 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"tauri": "tauri"
},
"devDependencies": {
"@cloudflare/pages-plugin-vercel-og": "^0.1.1",
"@crikey/stores-select": "^0.2.2",
"@floating-ui/dom": "^1.6.3",
"@skeletonlabs/skeleton": "2.9.0",
Expand All @@ -28,6 +27,7 @@
"@types/node": "20.12.2",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.3.1",
"@vercel/og": "^0.6.2",
"autoprefixer": "10.4.18",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backgrounds/[slug].png/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type RequestHandler } from '@sveltejs/kit';
import type { EntryGenerator } from './$types';
import { SEO, IMAGES_RENDER } from '$env/static/private';
import { backgrounds } from '$lib/data/backgrounds';
import { ImageResponse } from '@cloudflare/pages-plugin-vercel-og/api';
import { ImageResponse } from '@vercel/og';
import { html as toReactNode } from 'satori-html';

export const prerender = Boolean(Number(SEO) && Number(IMAGES_RENDER));
Expand Down

0 comments on commit 68229f6

Please sign in to comment.