import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import { sharedVite } from '@eratic/core/astro';
// eratic.ro — the front door. Reads the other three sites' content directly
// from disk at build time (see src/content.config.ts) so the home page always
// shows what is actually published, with no API and no duplicated data.
export default defineConfig({
// Keeps fonts out of data: URIs — see packages/core/astro.mjs
vite: sharedVite,
site: 'https://eratic.ro',
trailingSlash: 'always',
build: { format: 'directory' },
integrations: [mdx(), sitemap()],
image: {
responsiveStyles: true,
layout: 'constrained',
},
devToolbar: { enabled: false },
});