-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
53 lines (51 loc) · 1.22 KB
/
astro.config.ts
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
45
46
47
48
49
50
51
52
53
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import compressor from "astro-compressor";
import { defineConfig } from "astro/config";
import rehypePresetMinify from "rehype-preset-minify";
import rehypeSlug from "rehype-slug";
import remarkToc from "remark-toc";
import { remarkReadingTime } from "./remark-reading-time.mjs";
import svelte from "@astrojs/svelte";
export default defineConfig({
output: "static",
site: "https://ekel.dev",
prefetch:{
prefetchAll: true,
defaultStrategy:"viewport"
},
integrations: [
tailwind(),
mdx({
syntaxHighlight: "shiki",
shikiConfig: {
theme: "github-dark-default",
},
remarkPlugins: [remarkToc, remarkReadingTime],
rehypePlugins: [rehypePresetMinify, rehypeSlug],
remarkRehype: {
footnoteLabel: "Footnotes",
},
gfm: true,
optimize: true,
}),
sitemap({
changefreq: "weekly",
priority: 1,
}),
compressor({
gzip: true,
brotli: true,
}),
(await import("@playform/compress")).default(),
svelte(),
],
server: {
port: 3000,
host: true,
},
devToolbar: {
enabled: false,
},
});