-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
43 lines (42 loc) · 1.24 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
import cloudflare from "@astrojs/cloudflare";
import solidJs from "@astrojs/solid-js";
import tailwind from "@astrojs/tailwind";
import { defineConfig, envField } from "astro/config";
import { passthroughImageService } from "astro/config";
export default defineConfig({
site: "https://astro.build/config", // TODO: update
output: "server",
// prefetch: true,
integrations: [solidJs(), tailwind({ applyBaseStyles: false })],
image: { service: passthroughImageService() },
adapter: cloudflare({
platformProxy: { enabled: true },
}),
experimental: {
contentCollectionCache: true,
env: {
schema: {
API_URL: envField.string({
context: "client",
access: "public",
optional: true,
}),
PORT: envField.number({
context: "server",
access: "public",
default: 4321,
}),
TURSO_DATABASE_URL: envField.string({
context: "server",
access: "secret",
default: import.meta.env.DEV ? "http://127.0.0.1:8080" : undefined,
}),
TURSO_AUTH_TOKEN: envField.string({
context: "server",
access: "secret",
default: import.meta.env.DEV ? "" : undefined,
}),
},
},
},
});