-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
51 lines (50 loc) · 1.48 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
45
46
47
48
49
50
51
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
import rehypePrettyCode from "rehype-pretty-code";
// https://astro.build/config
export default defineConfig({
site: "https://www.bswanson.dev",
integrations: [
mdx(),
sitemap(),
tailwind({ applyBaseStyles: false }),
icon(),
],
adapter: process.env.VERCEL ? vercel() : undefined,
markdown: {
syntaxHighlight: false, // Handle syntax highlighting using rehype-pretty-code instead of the built-in solution
rehypePlugins: [
[
rehypePrettyCode,
{
theme: {
dark: "github-dark-dimmed",
light: "github-light",
},
},
],
],
},
redirects: {
// Blog posts and other pages from my old site
"/blog/creating-beautiful-skeleton-loaders-with-react-and-tailwindcss":
"/blog/beautiful-skeleton-loading-states",
"/blog/running-lighthouse-ci-on-all-modified-next-js-pages-using-github-actions":
"/blog/run-lighthouse-ci-on-changed-pages",
"/blog/cyberdiscord-open-2023-review-writeup":
"/blog/2023-cyberdiscord-open",
"/portfolio": "/projects",
"/portfolio/media/bluedragon": "/projects/bluedragon",
"/favicon.svg": "/icon.svg",
},
experimental: {
responsiveImages: true,
},
image: {
experimentalLayout: "none",
},
});