-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
53 lines (51 loc) · 1.35 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
import { defineConfig } from 'astro/config';
import solid from "@astrojs/solid-js";
import sitemap from "@astrojs/sitemap";
import partytown from "@astrojs/partytown";
//import sentry from "@sentry/astro";
//import spotlightjs from "@spotlightjs/astro";
//import cloudflare from "@astrojs/cloudflare";
//import netlify from "@astrojs/netlify";
import netlify from '@astrojs/netlify/functions';
// https://astro.build/config
export default defineConfig({
/*adapter: cloudflare({
platformProxy: {
enabled: true
},
imageService: 'cloudflare',
}),*/
adapter: netlify({
edgeMiddleware: true
}),
prefetch: true,
integrations: [solid(), sitemap({
i18n: {
defaultLocale: "en",
locales: {
en: 'en-US',
de: 'de-DE'
}
},
lastmod: new Date(),
changefreq: 'monthly'
}), partytown({
config: {
forward: ["dataLayer.push"]
}
}) /*sentry({
dsn: "https://f69d7d9f1a48aecc94b3c4ef7a45aa77@o4506350384906240.ingest.sentry.io/4506350397489152",
sourceMapsUploadOptions: {
project: "website",
authToken: process.env.SENTRY_AUTH_TOKEN
},
environment: process.env.NODE_ENV?.toLowerCase()
}), spotlightjs()*/],
//image: {
// service: sharpImageService(),
//},
//output: "hybrid",
output: "server",
site: "https://lindnerit.io/",
compressHTML: true
});