Skip to content

Commit d56a31d

Browse files
authored
Setup Vercel Web Analytics and Speed Insights (#10)
Signed-off-by: GitHub <[email protected]>
1 parent 5464981 commit d56a31d

File tree

5 files changed

+611
-5
lines changed

5 files changed

+611
-5
lines changed

astro.config.mjs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ import { defineConfig } from 'astro/config';
33
import sentry from "@sentry/astro";
44
import spotlightjs from "@spotlightjs/astro";
55

6+
import vercel from "@astrojs/vercel/serverless";
7+
68
// https://astro.build/config
79
export default defineConfig({
8-
integrations: [sentry(), spotlightjs()]
9-
});
10+
integrations: [sentry(), spotlightjs()],
11+
output: "server",
12+
adapter: vercel({
13+
webAnalytics: {
14+
enabled: true,
15+
},
16+
speedInsights: {
17+
enabled: true,
18+
},
19+
}),
20+
});

0 commit comments

Comments
 (0)