-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathastro.config.ts
More file actions
35 lines (33 loc) · 952 Bytes
/
astro.config.ts
File metadata and controls
35 lines (33 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
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig, envField } from 'astro/config';
import { themes } from './src/lib/shiki';
export default defineConfig({
site: 'https://foundations.significa.co',
env: {
schema: {
POSTHOG_KEY: envField.string({ context: 'client', access: 'public' }),
POSTHOG_HOST: envField.string({ context: 'client', access: 'public' }),
},
},
integrations: [mdx(), react()],
vite: {
plugins: [tailwindcss()],
build: {
rollupOptions: {
external: ['/pagefind/pagefind.js'], // don't bundle pagefind.js, treat it as an external asset
},
},
assetsInclude: '**/pagefind.js', // treat pagefind.js as an asset so it gets copied to the dist folder
},
markdown: {
syntaxHighlight: 'shiki',
shikiConfig: {
themes,
},
},
devToolbar: {
enabled: false,
},
});