This commit is contained in:
Max Richter
2025-07-20 13:37:29 +02:00
parent b32ca7d65e
commit 666b618a73
15 changed files with 375 additions and 67 deletions

View File

@ -17,13 +17,12 @@ const locales = {
const DEFAULT_LAYOUT = '@layouts/Post.astro';
function setDefaultLayout() {
return function (_, file) {
return function(_, file) {
const { frontmatter } = file.data.astro;
if (!frontmatter.layout) frontmatter.layout = DEFAULT_LAYOUT;
};
}
// https://astro.build/config
export default defineConfig({
site: "https://max-richter.dev",
trailingSlash: "never",
@ -39,7 +38,7 @@ export default defineConfig({
}),
],
server: {
watch: {
watch: {
// Customize watch behavior to reduce file watchers
ignored: ['**/node_modules/**', '**/dist/**', '**/.git/**'],
usePolling: process.env.NODE_ENV === 'production',