-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
44 lines (42 loc) · 952 Bytes
/
Copy pathastro.config.ts
File metadata and controls
44 lines (42 loc) · 952 Bytes
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
import vercel from '@astrojs/vercel';
import icon from 'astro-icon';
import { defineConfig } from 'astro/config';
import { loadEnv } from 'vite';
// Can’t use `import.meta.env` here. See: https://docs.astro.build/en/guides/configuring-astro/#environment-variables
const { PUBLIC_SITE_URL } = loadEnv(
process.env.NODE_ENV ?? 'development',
process.cwd(),
'',
);
export default defineConfig({
redirects: {
'/': {
status: 307,
destination: '/blog',
},
},
site: PUBLIC_SITE_URL,
adapter: vercel(),
integrations: [
icon({
iconDir: 'src/assets/icons',
include: {
'fa6-brands': ['linkedin', 'square-github'],
'fa6-solid': ['calendar', 'clock', 'eye', 'tag'],
},
}),
],
vite: {
optimizeDeps: {
exclude: ['fsevents'],
},
},
markdown: {
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
},
});