generated from cameronapak/freedom-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
43 lines (41 loc) · 1.28 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
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import alpinejs from "@astrojs/alpinejs";
import netlify from "@astrojs/netlify";
import sentry from "@sentry/astro";
// import db from "@astrojs/db";
// import webVitals from "@astrojs/web-vitals";
// import clerk from "@clerk/astro";
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 isSentryEnabled = SENTRY_DSN && SENTRY_AUTH_TOKEN && SENTRY_PROJECT;
// https://astro.build/config
export default defineConfig({
integrations: [
// db(),
tailwind(), // This entrypoint file is where Alpine plugins are registered.
alpinejs({
entrypoint: "/src/entrypoint"
}), // To enable Sentry monitoring, add the following environment variables.
// Learn more at https://docs.sentry.io/platforms/javascript/guides/astro/#prerequisites.
isSentryEnabled &&
sentry({
dsn: SENTRY_DSN,
auth: SENTRY_AUTH_TOKEN,
project: SENTRY_PROJECT
})
// webVitals(),
// clerk()
],
// vite: {
// optimizeDeps: {
// exclude: ["astro:db"]
// }
// },
output: "server",
adapter: netlify(),
experimental: {
serverIslands: true
}
});