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';
|
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
|
|
|
|
},
|
2023-12-11 23:41:48 +01:00
|
|
|
integrations: [mdx()],
|
|
|
|
markdown: {
|
|
|
|
remarkPlugins: [
|
|
|
|
a11yEmoji
|
|
|
|
],
|
|
|
|
shikiConfig: {
|
|
|
|
theme: "one-dark-pro"
|
|
|
|
}
|
2024-01-06 13:59:05 +01:00
|
|
|
},
|
|
|
|
// Copy wasm-terminal to the build directory
|
|
|
|
vite: {
|
|
|
|
plugins: [
|
|
|
|
wasmPack([],['@c0ntroller/wasm-terminal'])
|
|
|
|
]
|
2023-12-11 23:41:48 +01:00
|
|
|
}
|
|
|
|
});
|