Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import sentry from "@sentry/astro";
import tailwindcss from "@tailwindcss/vite";
import rehypeSlug from "rehype-slug";

const isProduction = process.env.NODE_ENV === "production";

export default defineConfig({
site: "https://sentry.engineering",
output: "static",
integrations: [sitemap()],
integrations: [
sitemap(),
...(isProduction
? [
sentry({
enabled: {
client: true,
server: false,
},
sourcemaps: {
disable: true,
},
}),
]
: []),
],
image: {
service: {
entrypoint: "astro/assets/services/sharp",
Expand Down
Loading