-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.mjs
More file actions
33 lines (30 loc) · 1003 Bytes
/
astro.config.mjs
File metadata and controls
33 lines (30 loc) · 1003 Bytes
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
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import icon from "astro-icon";
import { remarkReadingTime } from "./src/utils/all";
import rehypePluginImageNativeLazyLoading from "rehype-plugin-image-native-lazy-loading";
import favicons from "astro-favicons";
export default defineConfig({
site: "https://codingly.netlify.app",
vite: {
plugins: [tailwindcss()],
},
markdown: {
remarkPlugins: [remarkReadingTime],
rehypePlugins: [rehypePluginImageNativeLazyLoading],
extendDefaultPlugins: true,
},
integrations: [mdx(), sitemap({
filter: (page) => page !== "https://codingly.netlify.app/admin",
changefreq: "weekly",
priority: 0.7,
lastmod: new Date(),
customPages: [
"https://codingly.netlify.app/blog",
"https://codingly.netlify.app/about",
"https://codingly.netlify.app/contact",
],
}), icon(), favicons()],
});