-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
43 lines (41 loc) · 1.14 KB
/
astro.config.ts
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
/// <reference types="./astro.config.d.ts" />
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import cloudflare from "@astrojs/cloudflare";
import { myRemark } from "./packages/my-remark";
import mdRenderer from "./packages/astro-md";
import astroCloudflareSentry from "./packages/astro-cf-sentry";
import fullReload from "vite-plugin-full-reload";
// https://astro.build/config
export default defineConfig({
site:
process.env.NODE_ENV === "development"
? "http://localhost:4321"
: "https://just-be.dev",
/**
* Note: I'd like this to be hybrid, but when that's enabled cf deployments give me a 500 error
* @see https://just-be.sentry.io/share/issue/ab09f9239b3f45d1b27a222743afd6aa/
*/
output: "server",
markdown: {
remarkPlugins: [myRemark],
},
integrations: [
mdRenderer(),
tailwind(),
astroCloudflareSentry({
org: "just-be",
project: "just-be-dev",
telemetry: false,
}),
],
adapter: cloudflare({
imageService: "cloudflare",
platformProxy: {
enabled: true,
},
}),
vite: {
plugins: [fullReload(["notes/**/*.md"])],
},
});