-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
45 lines (41 loc) · 1.12 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
// @ts-check
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
export default defineConfig({
adapter: vercel({
isr: {
expiration: 60 * 60,
},
}),
image: {
remotePatterns: [
{ protocol: "https", hostname: "avatars.githubusercontent.com" },
{ protocol: "https", hostname: "upload.wikimedia.org" },
{ protocol: "https", hostname: "external-content.duckduckgo.com" },
],
},
integrations: [tailwind({ applyBaseStyles: false }), sitemap()],
output: "hybrid",
markdown: {
syntaxHighlight: "shiki",
shikiConfig: { theme: "catppuccin-mocha", langAlias: { cc: "cpp" } },
},
prefetch: { prefetchAll: true, defaultStrategy: "viewport" },
redirects: {
"/links": "/quick-view",
"/bio": "/profile",
"/indian-legends": "/legends",
},
experimental: {
clientPrerender: true,
directRenderScript: true,
contentCollectionCache: true,
},
site:
process.env.NODE_ENV === "development"
? "http://localhost:4321/"
: "https://naparajith.vercel.app/",
});