-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
44 lines (43 loc) · 1.14 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
38
39
40
41
42
43
44
import mdx from "@astrojs/mdx";
import node from "@astrojs/node";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
import remarkEmbedImages from "remark-embed-images";
import { setLayout } from "./src/lib/remark-default-layout";
export default defineConfig({
site: "https://andri.dk/",
integrations: [react(), mdx(), tailwind(), icon(), sitemap()],
trailingSlash: "ignore",
markdown: {
drafts: true,
remarkPlugins: [remarkEmbedImages, setLayout],
shikiConfig: { theme: "github-dark" },
},
vite: {
ssr: {
external: ["svgo", "@react-pdf/renderer"],
noExternal: ["path-to-regexp"],
},
optimizeDeps: {
exclude: ["social-cards"], // https://github.com/evanw/esbuild/issues/1051#issuecomment-1006992549
},
},
i18n: {
defaultLocale: "en",
locales: ["en", "da", "is"],
routing: {
prefixDefaultLocale: false,
},
fallback: {
is: "en",
da: "en",
},
},
output: "server",
adapter: node({
mode: "middleware",
}),
});