-
Notifications
You must be signed in to change notification settings - Fork 56
/
astro.config.js
48 lines (46 loc) · 1.02 KB
/
astro.config.js
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
import path from 'node:path';
import {fileURLToPath} from 'node:url';
import {defineConfig} from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import remarkCustomHeaderId from 'remark-custom-header-id';
/// import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import {SITE} from './source/config.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// https://astro.build/config
export default defineConfig({
site: SITE.origin,
srcDir: './source',
output: 'static',
trailingSlash: 'never',
build: {
format: 'file',
},
redirects: {
'/thanks': '/supporters',
'/lock-screen-one': '/any-text',
},
integrations: [
tailwind({
applyBaseStyles: false,
}),
sitemap(),
],
markdown: {
remarkPlugins: [
remarkCustomHeaderId,
],
// TODO
// rehypePlugins: [
// rehypeHeadingIds,
// [rehypeAutolinkHeadings, {behavior: 'wrap'}],
// ]
},
vite: {
resolve: {
alias: {
'~': path.resolve(__dirname, './source'),
},
},
},
});