-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
44 lines (40 loc) · 872 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
40
41
42
43
44
// @ts-check
import { defineConfig } from "astro/config"
import cloudflare from "@astrojs/cloudflare"
import react from "@astrojs/react"
import vue from "@astrojs/vue"
import svelte from "@astrojs/svelte"
import solidJs from "@astrojs/solid-js"
import tailwind from "@astrojs/tailwind"
import rehypeExternalLinks from "rehype-external-links"
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: cloudflare({
platformProxy: {
enabled: true,
},
}),
integrations: [
react({
include: ["**/*.tsx"],
exclude: ["**/*.solid.tsx"],
}),
vue(),
svelte(),
solidJs({ include: ["**/*.solid.tsx"] }),
tailwind({ applyBaseStyles: false }),
],
vite: {
resolve: {
alias: {
"@": "/src",
},
},
},
markdown: {
rehypePlugins: [
[rehypeExternalLinks, { target: "_blank", rel: "noreferrer" }],
],
},
})