-
Notifications
You must be signed in to change notification settings - Fork 204
/
astro.config.mjs
50 lines (45 loc) · 1.76 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
import { defineConfig } from 'astro/config'
import vue from '@astrojs/vue'
import tailwind from '@astrojs/tailwind'
// Astro Netlify Reference
// https://github.com/withastro/astro/tree/main/packages/integrations/netlify
import netlify from '@astrojs/netlify/functions'
// import sitemap from '@astrojs/sitemap'
import partytown from '@astrojs/partytown'
import tsconfigPaths from 'vite-tsconfig-paths'
// import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
import viteConfig from './vite.config.mjs'
console.log( 'Running Astro Config File' )
// https://astro.build/config
export default defineConfig({
output: 'server',
publicDir: './static',
site: 'https://doesitarm.com/',
adapter: netlify({
dist: new URL('./dist/', import.meta.url)
}),
integrations: [
// Astro Vue Reference
// https://github.com/withastro/astro/tree/main/packages/integrations/vue
vue(),
tailwind(),
// Sitemap Reference
// https://github.com/withastro/astro/blob/main/packages/integrations/sitemap/src/index.ts
// https://github.com/withastro/astro/tree/main/packages/integrations/sitemap#configuration
// sitemap({
// customPages: [
// '/relative-url',
// 'https://doesitarm.com/absolute-url',
// ]
// })
partytown({
// Add dataLayer.push as a forwarding-event.
// https://github.com/withastro/astro/tree/main/packages/integrations/partytown#configforward
config: { forward: [ 'dataLayer.push' ] },
}),
],
// Vite options
// https://docs.astro.build/en/reference/configuration-reference/#vite
vite: viteConfig
})