-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
57 lines (53 loc) · 1.43 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
// @ts-check
/** @type {import('astro')} */
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import robotsTxt from 'astro-robots-txt';
import webmanifest from 'astro-webmanifest';
// @ts-ignore
import { astroImageTools } from 'astro-imagetools';
import siteUrl from './src/config/siteUrl.mjs';
import seoConfig from './src/config/seo.config.mjs';
import webmanifestConfig from './src/config/webmanifest.config.mjs';
// https://astro.build/config
export default defineConfig({
// root: '.',
// srcDir: './src',
// publicDir: './public',
// outDir: './dist',
site: siteUrl,
// base: '/',
// trailingSlash: 'always',
// build: {},
// devOptions: {
// hostname: 'localhost', // The hostname to run the dev server on.
// port: 3000, // The port to run the dev server on.
// trailingSlash: 'always',
// },
experimental: {
integrations: true,
},
integrations: [
astroImageTools,
tailwind({ config: { applyBaseStyles: false } }),
robotsTxt({
sitemap: false,
policy: [
{
userAgent: '*',
disallow: seoConfig.disableIndexing ? '/' : '',
},
],
}),
webmanifest(webmanifestConfig),
],
vite: {
/**
* Due to an issue in the current version of Vite used by Astro, you need to add the following to your astro project config file:
*
*/
ssr: {
external: ['svgo'],
},
},
});