Skip to content

Commit

Permalink
chore: add vercel build adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Jun 7, 2024
1 parent 7e18565 commit d2d14cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
13 changes: 10 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import vercel from '@astrojs/vercel/serverless';

import mdx from "@astrojs/mdx";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind({
applyBaseStyles: false
}), react(), mdx()]
output: 'server',
integrations: [
tailwind({
applyBaseStyles: false
}),
react(),
mdx(),
vercel()
]
});
Binary file modified bun.lockb
Binary file not shown.
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/mdx": "^2.0.5",
"@astrojs/react": "^3.0.9",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/vercel": "^7.6.0",
"astro": "^4.2.1",
"clsx": "^2.1.0",
"lucide-react": "^0.312.0",
Expand Down
1 change: 1 addition & 0 deletions src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export async function getStaticPaths() {
props: { entry },
}));
}
export const prerender = true;
const { entry } = Astro.props;
const { Content } = await entry.render();
Expand Down

0 comments on commit d2d14cd

Please sign in to comment.