-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
70 lines (68 loc) · 1.77 KB
/
astro.config.mjs
File metadata and controls
70 lines (68 loc) · 1.77 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// @ts-check
import { defineConfig } from 'astro/config';
import { appConfig } from './app.config';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import { filterSitemapBlacklist } from './template/integrations/sitemap';
import orama from '@orama/plugin-astro';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import pngToWebpIntegration from './astro-integration-png-to-webp.mjs';
// https://astro.build/config
export default defineConfig({
site: appConfig.hostname,
base: appConfig.basePath,
integrations: [
react({}),
mdx(),
sitemap({
filter: filterSitemapBlacklist,
}),
orama({
pages: {
pathMatcher: /\/.+\//,
language: 'english',
},
}),
pngToWebpIntegration(),
],
srcDir: './content',
outDir: './public',
publicDir: './static',
vite: {
plugins: [
viteStaticCopy({
targets: [
{
src: './node_modules/@google/model-viewer/dist/model-viewer.min.js',
dest: './',
},
{
src: './node_modules/@google/model-viewer/dist/model-viewer.min.js.map',
dest: './',
},
{
src: 'node_modules/@db-ux/db-theme/build/images/light/db_logo.svg',
dest: './',
},
],
}),
],
ssr: {
noExternal: ['@db-ux/react-core-components'],
},
resolve: {
alias: {
'@db-ux': new URL('./node_modules/@db-ux', import.meta.url).pathname,
'@components': new URL('./template/components', import.meta.url).pathname,
'@template': new URL('./template', import.meta.url).pathname,
'@content': new URL('./content', import.meta.url).pathname,
'@config': new URL('./app.config.ts', import.meta.url).pathname,
'@assets': new URL('./static/assets', import.meta.url).pathname,
},
},
},
devToolbar: {
enabled: false,
},
});