-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
44 lines (41 loc) · 909 Bytes
/
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
// @ts-check
import { defineConfig, envField } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
export default defineConfig({
output: "server",
integrations: [
tailwind({
applyBaseStyles: false,
}),
react(),
],
env: {
schema: {
CNEL_API_URL: envField.string({
context: "client",
access: "public",
optional: true,
}),
PORT: envField.number({
context: "server",
access: "public",
default: 4321,
}),
},
validateSecrets: true,
},
adapter: vercel({
webAnalytics: {
enabled: true,
},
maxDuration: 8,
imageService: true,
imagesConfig: {
sizes: [320, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
domains: ["images.unsplash.com"],
},
isr: true,
}),
});