-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
39 lines (36 loc) · 1009 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 { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import vercel from '@astrojs/vercel/serverless';
import robotsTxt from "astro-robots-txt";
import UnoCSS from "@unocss/astro";
import icon from "astro-icon";
import solidJs from "@astrojs/solid-js";
import { remarkReadingTime } from "./src/lib/ remark-reading-time.mjs";
import svelte from "@astrojs/svelte";
// https://astro.build/config
export default defineConfig({
site: "https://devanshkukreja.vercel.app/", // Your Vercel deployment URL
integrations: [
sitemap(),
robotsTxt({
sitemap: [
"https://devanshkukreja.vercel.app/sitemap-index.xml",
"https://devanshkukreja.vercel.app/sitemap-0.xml",
],
}),
solidJs(),
UnoCSS({ injectReset: true }),
icon(),
svelte(),
],
markdown: {
remarkPlugins: [remarkReadingTime],
},
output: "server",
adapter: vercel({
webAnalytics: { enabled: true }
}),
vite: {
assetsInclude: "**/*.riv",
},
});