2023-04-09 03:30:10 +02:00
|
|
|
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';
|
|
|
|
|
2023-04-09 03:30:10 +02:00
|
|
|
// 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
|
|
|
});
|