mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
9dcc5e1932
* wip: astro config to use .ts instead of .mjs * fix: remove invalid prop in astro config * refactor: single source of truth for site url * refactor: make minor updates due to astro.config.ts --------- Co-authored-by: satnaing <satnaingdev@gmail.com>
41 lines
819 B
TypeScript
41 lines
819 B
TypeScript
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";
|
|
import { SITE } from "./src/config";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: SITE.website,
|
|
integrations: [
|
|
tailwind({
|
|
applyBaseStyles: false,
|
|
}),
|
|
react(),
|
|
sitemap(),
|
|
],
|
|
markdown: {
|
|
remarkPlugins: [
|
|
remarkToc,
|
|
[
|
|
remarkCollapse,
|
|
{
|
|
test: "Table of contents",
|
|
},
|
|
],
|
|
],
|
|
shikiConfig: {
|
|
theme: "one-dark-pro",
|
|
wrap: true,
|
|
},
|
|
},
|
|
vite: {
|
|
optimizeDeps: {
|
|
exclude: ["@resvg/resvg-js"],
|
|
},
|
|
},
|
|
scopedStyleStrategy: "where",
|
|
});
|