Skip to content

Commit 3e0e94e

Browse files
Revert "chore: added og image generation"
This reverts commit 3732534.
1 parent cfbfc92 commit 3e0e94e

File tree

3 files changed

+38
-560
lines changed

3 files changed

+38
-560
lines changed

astro.config.ts

+37-34
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,46 @@ import remarkUnwrapImages from "remark-unwrap-images";
88
// @ts-ignore:next-line
99
import { remarkReadingTime } from "./src/utils/remark-reading-time.mjs";
1010

11-
import opengraphImages from "astro-opengraph-images";
12-
1311
// https://astro.build/config
1412
export default defineConfig({
15-
site: "https://adikris.in",
16-
base: "/blog",
17-
markdown: {
18-
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
19-
remarkRehype: { footnoteLabelProperties: { className: [""] } },
20-
shikiConfig: {
21-
theme: "dracula",
22-
wrap: true,
23-
},
24-
},
25-
integrations: [mdx({}), tailwind({
26-
applyBaseStyles: false,
27-
}), sitemap(), prefetch(), opengraphImages()],
28-
vite: {
29-
plugins: [rawFonts([".ttf"])],
30-
optimizeDeps: {
31-
exclude: ["@resvg/resvg-js"],
32-
},
33-
},
13+
site: "https://adikris.in",
14+
base: "/blog",
15+
markdown: {
16+
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
17+
remarkRehype: { footnoteLabelProperties: { className: [""] } },
18+
shikiConfig: {
19+
theme: "dracula",
20+
wrap: true,
21+
},
22+
},
23+
integrations: [
24+
mdx({}),
25+
tailwind({
26+
applyBaseStyles: false,
27+
}),
28+
sitemap(),
29+
prefetch(),
30+
],
31+
vite: {
32+
plugins: [rawFonts([".ttf"])],
33+
optimizeDeps: {
34+
exclude: ["@resvg/resvg-js"],
35+
},
36+
},
3437
});
3538

3639
function rawFonts(ext: Array<string>) {
37-
return {
38-
name: "vite-plugin-raw-fonts",
39-
// @ts-ignore:next-line
40-
transform(_, id) {
41-
if (ext.some((e) => id.endsWith(e))) {
42-
const buffer = fs.readFileSync(id);
43-
return {
44-
code: `export default ${JSON.stringify(buffer)}`,
45-
map: null,
46-
};
47-
}
48-
},
49-
};
40+
return {
41+
name: "vite-plugin-raw-fonts",
42+
// @ts-ignore:next-line
43+
transform(_, id) {
44+
if (ext.some((e) => id.endsWith(e))) {
45+
const buffer = fs.readFileSync(id);
46+
return {
47+
code: `export default ${JSON.stringify(buffer)}`,
48+
map: null,
49+
};
50+
}
51+
},
52+
};
5053
}

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919
"@astrojs/tailwind": "^5.0.1",
2020
"astro": "3.2.3",
2121
"astro-icon": "^0.8.1",
22-
"astro-opengraph-images": "^1.11.3",
2322
"satori": "0.10.8",
2423
"satori-html": "^0.3.2",
25-
"sharp": "^0.33.1",
26-
"tw-to-css": "^0.0.12"
24+
"sharp": "^0.33.1"
2725
},
2826
"devDependencies": {
2927
"@astrojs/check": "^0.7.0",

0 commit comments

Comments
 (0)