-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
44 lines (40 loc) · 1.25 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
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import alpinejs from "@astrojs/alpinejs";
import node from '@astrojs/node';
//import netlify from "@astrojs/netlify";
import sentry from "@sentry/astro";
import keystatic from '@keystatic/astro';
import react from '@astrojs/react'
import markdoc from '@astrojs/markdoc';
const SENTRY_DSN = import.meta.env.SENTRY_DSN;
const SENTRY_AUTH_TOKEN = import.meta.env.SENTRY_AUTH_TOKEN;
const SENTRY_PROJECT = import.meta.env.SENTRY_PROJECT;
const integrations = [
tailwind(),
// This entrypoint file is where Alpine plugins are registered.
alpinejs({ entrypoint: '/src/entrypoint' }),
react(),
markdoc(),
keystatic(),
]
// To enable Sentry monitoring, add the following environment variables.
// Learn more at https://docs.sentry.io/platforms/javascript/guides/astro/#prerequisites.
if (SENTRY_DSN && SENTRY_AUTH_TOKEN && SENTRY_PROJECT) {
integrations.push(sentry({
dsn: SENTRY_DSN,
auth: SENTRY_AUTH_TOKEN,
project: SENTRY_PROJECT
}));
}
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
// https://astro.build/config
//export default defineConfig({
integrations,
// output: "server",
// adapter: netlify()
});