This commit is contained in:
parent
729704984c
commit
4bd975796e
148 changed files with 4865 additions and 27561 deletions
38
astro.config.mjs
Normal file
38
astro.config.mjs
Normal file
|
@ -0,0 +1,38 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import solidJs from "@astrojs/solid-js";
|
||||
import mdx from "@astrojs/mdx";
|
||||
import icon from "astro-icon";
|
||||
import paths from "node:path"
|
||||
import rehypeBuckTable from "~/support/rehype-buck-tables";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [solidJs(), mdx(), icon(), {
|
||||
name: "inject-cloudflare-headers",
|
||||
"hooks": {
|
||||
"astro:config:setup": ({injectRoute}) => {
|
||||
injectRoute({
|
||||
pattern: "/_headers",
|
||||
entrypoint: "./src/pages/_headers.ts",
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
markdown: {
|
||||
rehypePlugins: [rehypeBuckTable],
|
||||
shikiConfig: {
|
||||
themes: {
|
||||
light: "github-light",
|
||||
dark: "github-dark",
|
||||
}
|
||||
}
|
||||
},
|
||||
vite: {
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": paths.resolve(import.meta.dir, "src")
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue