-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
29 lines (27 loc) · 963 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
import { defineConfig } from 'astro/config';
import vercel from "@astrojs/vercel/serverless";
import sitemap from "@astrojs/sitemap";
import expressiveCode from "astro-expressive-code";
import mdx from "@astrojs/mdx";
import vue from "@astrojs/vue";
import db from "@astrojs/db";
import icon from "astro-icon";
const site = "https://jackbailey.dev";
const forbiddenPages = ["/contact/error", "/contact/success", "/contact/remove", "/contact/submission*", "/availability"].map(page => site + page);
// https://astro.build/config
export default defineConfig({
site,
integrations: [sitemap({
filter: page => !forbiddenPages.includes(page)
}), expressiveCode({
themes: ["github-dark-dimmed", "github-light"],
themeCssSelector: theme => `[data-ec-theme='${theme.name}']`
}), mdx(), vue(), db(), icon({
include: {
"fa-solid": ["memory", "hdd", "desktop"]
}
})],
output: "hybrid",
trailingSlash: "never",
adapter: vercel()
});