-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
30 lines (29 loc) · 972 Bytes
/
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
// @ts-check
import cloudflare from "@astrojs/cloudflare"
import mdx from "@astrojs/mdx"
import preact from "@astrojs/preact"
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
import { defineConfig, envField } from "astro/config"
import rehypeExternalLinks from "rehype-external-links"
// https://astro.build/config
export default defineConfig({
experimental: {
responsiveImages: true,
svg: true,
},
compressHTML: true,
adapter: cloudflare(),
markdown: {
shikiConfig: { theme: "css-variables", wrap: true },
rehypePlugins: [[rehypeExternalLinks, { target: "_blank" }]],
},
env: {
schema: {
PLAUSIBLE_DOMAIN: envField.string({ context: "client", access: "public" }),
PLAUSIBLE_URL: envField.string({ context: "client", access: "public" }),
},
},
site: process.env.SITE_URL || "http://localhost:4321",
integrations: [tailwind({ applyBaseStyles: false }), sitemap(), mdx(), preact()],
})