import { defineConfig } from "@solidjs/start/config"; //@ts-expect-error import pkg from "@vinxi/plugin-mdx"; import { blogPostsPlugin } from "./build-helpers/blogPostsPlugin"; import remarkFrontmatter from "remark-frontmatter"; import rehypeMdxCodeProps from "rehype-mdx-code-props"; import { mdxPrism } from "./build-helpers/mdxPrism"; import remarkToc from "remark-toc"; const { default: mdx } = pkg; export default defineConfig({ extensions: ["mdx", "md"], vite: { plugins: [ mdx.withImports({})({ remarkPlugins: [remarkFrontmatter, remarkToc], rehypePlugins: [rehypeMdxCodeProps, mdxPrism], jsx: true, jsxImportSource: "solid-js", providerImportSource: "solid-mdx", }), blogPostsPlugin(), ], build: { minify: false, }, }, server: { prerender: { crawlLinks: true, }, }, });