-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
37 lines (35 loc) · 1.13 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Full Astro Configuration API Documentation:
// https://astro.build/config
import { defineConfig } from "astro/config";
// import sitemap from '@astrojs/sitemap'
import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
// import mdx from "@mdx-js/rollup";
// import react from "@astrojs/react";
import preact from "@astrojs/preact";
// import solid from "@astrojs/solid-js";
import fetchAhead from "./integrations/fetch-ahead/index.mjs";
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
export default defineConfig({
site: "https://www.poko.page/",
// markdown: { mode: 'mdx' },
integrations: [
// react(),
preact(),
// solid(),
fetchAhead(),
],
vite: {
// NOTE: necessary for astro-icon apparently (https://github.com/natemoo-re/astro-icon)
// ssr: {
// external: ['svgo'],
// },
plugins: [
viteCommonjs(),
// mdx(/* jsxImportSource: …, otherOptions… */)
],
},
});