-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
57 lines (55 loc) · 1.67 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
46
47
48
49
50
51
52
53
54
55
56
57
// Full Astro Configuration API Documentation:
// https://astro.build/config
import 'dotenv/config'
import { defineConfig } from 'astro/config'
import svelte from '@astrojs/svelte'
import sitemap from '@astrojs/sitemap'
import robotsTxt from 'astro-robots-txt'
import critters from 'astro-critters'
import icon from 'astro-icon'
import { PAGE_ADMIN } from './src/utils/env'
import Biome from '@playform/format'
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
export default defineConfig({
site: 'https://www.wanna-play.be/',
cacheDir: '.cache',
image: {
// Allow Astro image optimization on CMS images.
// NOTE: Only usefull if we want to process images with Astro instead of serving directly from the CMS.
domains: ['cms.wanna-play.be'],
},
integrations: [
Biome(),
svelte(),
sitemap({
filter: page =>
!page.match(/\/(styleguide|email-error)\/$/) &&
!(PAGE_ADMIN && page.endsWith(`${PAGE_ADMIN}/`)),
}),
robotsTxt({
host: 'wanna-play.be',
policy: [
{
userAgent: '*',
allow: '/',
disallow: ['/styleguide', '/email-error'],
},
],
}),
(await import('astro-critters')).default({
logger: 1, // default is 2
fonts: true,
exclude: [file => file.startsWith('./dist/fr/e')],
}),
// critters({
// logger: 1, // default is 2
// fonts: true,
// exclude: [file => file.startsWith('./dist/fr/e')],
// }),
icon(),
],
})