migrate website to astro

This commit is contained in:
Juan Carlos Manzanero Domínguez
2024-06-25 10:07:29 -06:00
parent f1b9e3ff61
commit 667038d811
71 changed files with 13571 additions and 0 deletions

32
astro.config.mjs Normal file
View File

@ -0,0 +1,32 @@
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import rehypePrettyCode from "rehype-pretty-code";
import rehypeSlug from "rehype-slug";
import vercel from "@astrojs/vercel/serverless";
// https://astro.build/config
export default defineConfig({
output: "hybrid",
adapter: vercel(),
site: "https://www.juancman.dev/",
integrations: [
react(),
tailwind({
applyBaseStyles: false,
}),
mdx({
syntaxHighlight: false,
rehypePlugins: [
rehypeSlug,
[
rehypePrettyCode,
{
theme: "catppuccin-mocha",
},
],
],
}),
],
});