eratic / sites / home / astro.config.mjs
99 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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 },
});

static mirror of HEAD · about · clone: git clone https://git.makefuture.ro/eratic.git