frontpage/astro.config.mjs

23 lines
564 B
JavaScript
Raw Permalink Normal View History

2024-01-06 13:59:05 +01:00
import { defineConfig } from "astro/config";
2023-12-11 23:41:48 +01:00
import mdx from "@astrojs/mdx";
import a11yEmoji from "@fec/remark-a11y-emoji";
2024-01-06 13:59:05 +01:00
import wasmPack from 'vite-plugin-wasm-pack';
2024-03-03 15:18:06 +01:00
import icon from "astro-icon";
2023-12-11 23:41:48 +01:00
// https://astro.build/config
export default defineConfig({
2024-03-02 21:04:14 +01:00
prefetch: {
prefetchAll: true
},
2024-03-03 15:18:06 +01:00
integrations: [mdx(), icon()],
2023-12-11 23:41:48 +01:00
markdown: {
2024-03-03 15:18:06 +01:00
remarkPlugins: [a11yEmoji],
2023-12-11 23:41:48 +01:00
shikiConfig: {
theme: "one-dark-pro"
}
2024-01-06 13:59:05 +01:00
},
// Copy wasm-terminal to the build directory
vite: {
2024-03-03 15:18:06 +01:00
plugins: [wasmPack([], ['@c0ntroller/wasm-terminal'])]
2023-12-11 23:41:48 +01:00
}
});