personal-website/astro.config.js

18 lines
635 B
JavaScript
Raw Normal View History

import { defineConfig } from 'astro/config';
2024-04-14 14:47:52 +02:00
import react from '@astrojs/react';
import keystatic from '@keystatic/astro';
import tailwind from '@astrojs/tailwind';
import flattenListItems from 'mdast-flatten-listitem-paragraphs';
2024-04-19 18:33:07 +02:00
import mdx from '@astrojs/mdx';
2024-04-14 14:47:52 +02:00
const prod = process.env.NODE_ENV === 'production';
// https://astro.build/config
export default defineConfig({
2024-03-12 20:51:24 +01:00
site: import.meta.env.PROD ? 'https://filipesm.eu' : 'http://localhost:1234',
2024-04-30 11:47:08 +02:00
integrations: [...(!prod ? [keystatic(), react()] : []), mdx(), tailwind()],
2023-12-23 19:17:45 +01:00
markdown: {
remarkPlugins: [flattenListItems],
},
2024-04-14 14:47:52 +02:00
output: prod ? 'static' : 'hybrid',
2023-12-20 15:54:37 +01:00
});