-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
39 lines (37 loc) · 883 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
31
32
33
34
35
36
37
38
39
import EnvironmentPlugin from "vite-plugin-environment";
import svelte from "@astrojs/svelte";
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare"
export default defineConfig({
output: "hybrid",
adapter: cloudflare({
imageService: "passthrough",
platformProxy: {
enabled: true
},
}),
site: "https://ben.okkema.org",
server: {
port: 5000
},
integrations: [svelte()],
vite: {
plugins: [EnvironmentPlugin(["CF_PAGES_COMMIT_SHA", "HCAPTCHA_SITEKEY"])]
},
markdown: {
remarkPlugins: ['remark-gfm'],
rehypePlugins: [['rehype-external-links', {
target: "_blank",
content: {
type: "element",
tagName: "i",
properties: {
className: ["i-external"]
}
},
contentProperties: {
style: "margin-left: 4px;"
}
}]]
}
});