-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
32 lines (28 loc) · 939 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
import { defineConfig, sharpImageService } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import expressiveCode from "astro-expressive-code";
/** @type {import('astro-expressive-code').AstroExpressiveCodeOptions} */
const astroExpressiveCodeOptions = {
// Example: Change the themes
themes: ["slack-dark", "github-light"],
useDarkModeMediaQuery: true,
styleOverrides: {
// codeFontSize: '0.9rem',
}
};
// https://astro.build/config
export default defineConfig({
site: "https://ivalshamkya.com",
image: {
service: sharpImageService()
},
integrations: [expressiveCode(astroExpressiveCodeOptions), mdx(), sitemap(), react(), tailwind()],
vite: {
ssr: {
noExternal: process.env.NODE_ENV === "production" ? ["react-icons", "react-fast-marquee"] : ["react-icons"]
},
},
});