-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
56 lines (55 loc) · 1.57 KB
/
Copy pathastro.config.mjs
File metadata and controls
56 lines (55 loc) · 1.57 KB
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
52
53
54
55
56
// @ts-check
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import vercel from '@astrojs/vercel';
import sentry from '@sentry/astro';
import { transformerNotationDiff } from '@shikijs/transformers';
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
site: 'https://lhowsam.com',
// Astro 7 changed the default to 'jsx' (collapses whitespace between inline
// elements like React). Keep the v6 HTML-rules behaviour to avoid layout
// regressions; revisit if/when adopting JSX whitespace intentionally.
compressHTML: true,
server: {
port: 3000,
},
redirects: {
'/work/': '/work-projects/',
'/work/[slug]': '/work-projects/[slug]',
'/sitemap.xml': '/sitemap-index.xml',
'/blog/deploying-a-full-stack-app-via-dokku': '/blog/full-stack-deploy-with-dokku',
'/projects/infra': '/projects/config',
'/blog/nextjs-ssr-notes': '/blog/next-js-ssr-notes',
'/cv': '/static/cv.pdf',
'/branches': 'https://branches.lhowsam.com',
'/status': 'https://status.lhowsam.com',
'/linkedin': 'https://www.linkedin.com/in/lukehowsam',
'/github': 'https://github.com/luke-h1',
},
adapter: vercel({
edgeMiddleware: false,
skewProtection: true,
}),
integrations: [
mdx(),
sitemap(),
react(),
sentry(),
],
prefetch: true,
markdown: {
shikiConfig: {
theme: 'andromeeda',
wrap: true,
transformers: [transformerNotationDiff()],
},
},
vite: {
ssr: {
external: ['sharp'],
},
},
});