mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
27507d1d78
* feat: generate og images in png format In production mode, generate og images from svg to png format. fix #40 * refactor: update og image format from svg to png Update OG image format in post detail to png. Update twitter og images to auto-generated dynamic og images.
42 lines
829 B
JavaScript
42 lines
829 B
JavaScript
import { defineConfig } from "astro/config";
|
|
import tailwind from "@astrojs/tailwind";
|
|
import react from "@astrojs/react";
|
|
import remarkToc from "remark-toc";
|
|
import remarkCollapse from "remark-collapse";
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: "https://astro-paper.pages.dev/",
|
|
integrations: [
|
|
tailwind({
|
|
config: {
|
|
applyBaseStyles: false,
|
|
},
|
|
}),
|
|
react(),
|
|
sitemap(),
|
|
],
|
|
markdown: {
|
|
remarkPlugins: [
|
|
remarkToc,
|
|
[
|
|
remarkCollapse,
|
|
{
|
|
test: "Table of contents",
|
|
},
|
|
],
|
|
],
|
|
shikiConfig: {
|
|
theme: "one-dark-pro",
|
|
wrap: true,
|
|
},
|
|
extendDefaultPlugins: true,
|
|
},
|
|
vite: {
|
|
optimizeDeps: {
|
|
exclude: ["@resvg/resvg-js"],
|
|
},
|
|
},
|
|
});
|