38 lines
835 B
JavaScript
38 lines
835 B
JavaScript
import mdx from "@astrojs/mdx";
|
|
import node from "@astrojs/node";
|
|
import sitemap from "@astrojs/sitemap";
|
|
import { defineConfig } from "astro/config";
|
|
import EmbedPlugin from "astro-embed/integration";
|
|
import rehypeExternalLinks from "rehype-external-links";
|
|
import { remarkObsidianLinks } from "./src/lib/remark-obsidian-links.mjs";
|
|
|
|
export default defineConfig({
|
|
site: "https://adrian-altner.com",
|
|
|
|
devToolbar: {
|
|
enabled: false,
|
|
},
|
|
|
|
markdown: {
|
|
remarkPlugins: [remarkObsidianLinks],
|
|
rehypePlugins: [
|
|
[
|
|
rehypeExternalLinks,
|
|
{ target: "_blank", rel: ["noopener", "noreferrer"] },
|
|
],
|
|
],
|
|
},
|
|
|
|
integrations: [sitemap(), EmbedPlugin(), mdx()],
|
|
prefetch: true,
|
|
|
|
vite: {
|
|
ssr: {
|
|
noExternal: ["smartypants"],
|
|
},
|
|
},
|
|
|
|
adapter: node({
|
|
mode: "standalone",
|
|
}),
|
|
});
|