Skip to content

Commit

Permalink
docs: test vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mickasmt committed Sep 12, 2023
1 parent 6f39cb1 commit c20a0a8
Show file tree
Hide file tree
Showing 12 changed files with 303 additions and 17 deletions.
7 changes: 5 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
// import rehypeMinifyHtml from 'rehype-minify';
import vercel from '@astrojs/vercel/serverless';

// https://astro.build/config
export default defineConfig({
Expand All @@ -12,7 +12,6 @@ export default defineConfig({
mdx({
syntaxHighlight: 'shiki',
shikiConfig: { theme: 'github-dark-dimmed' },
// rehypePlugins: [rehypeMinifyHtml],
gfm: true,
}),
sitemap(),
Expand All @@ -21,4 +20,8 @@ export default defineConfig({
applyBaseStyles: false,
}),
],
output: 'server',
adapter: vercel({
analytics: true,
}),
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
"@astrojs/vercel": "^4.0.5",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-scroll-area": "^1.0.4",
"@radix-ui/react-select": "^1.2.2",
Expand Down
Loading

0 comments on commit c20a0a8

Please sign in to comment.