-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
43 lines (40 loc) · 982 Bytes
/
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
import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import { astroDocsExpressiveCode } from './src/integrations/expressive-code.js';
const productionBuild = import.meta.env.PROD;
export default defineConfig({
site: 'https://www.azion.com/',
build: {
assets: '_astro',
inlineStylesheets: 'always',
},
integrations: [
astroDocsExpressiveCode(),
tailwind({ applyBaseStyles: false }),
vue({ appEntrypoint: '/src/_vue.config.js' }),
sitemap()
],
compressHTML: productionBuild ? true : false,
trailingSlash: 'always',
vite: {
ssrBuild: true,
server: {
fs: {
allow: ['..']
}
},
ssr: {
noExternal: [
'@astrojs/vue',
'@aziontech/azion-web-kit'
],
external: [
'algoliasearch',
'instantsearch.js',
'vue-instantsearch/vue3/es',
]
}
}
});