404 not rendering, repro state for astro

This commit is contained in:
Lio 2025-11-19 11:00:39 +01:00
parent f0acf61023
commit d55df413cd
10 changed files with 10 additions and 1 deletions

View file

@ -17,7 +17,7 @@ import node from "@astrojs/node";
// https://astro.build/config
export default defineConfig({
output: "static",
output: "server",
prefetch: true,
site: "https://lio.cat",

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import MainLayout from "~/layouts/main.astro"
---

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import PostList from "~/components/astro/post-list.astro"
import { de, en } from "~/config"
import { getLangFromUrl } from "~/i18n/utils"

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import Footer from "~/components/astro/footer.astro"
import Intro from "~/components/astro/intro.astro"
import RecentBlogs from "~/components/astro/recent-blogs.astro"

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import { render } from "astro:content"
import { langs } from "~/i18n/ui"
import { getLangFromUrl } from "~/i18n/utils"

View file

@ -1,3 +1,4 @@
export const prerender = true
import { getCollection, type CollectionEntry } from "astro:content"
import fs from "fs"
import { join, resolve } from "node:path"

View file

@ -1,3 +1,4 @@
export const prerender = true
import rss from "@astrojs/rss"
import { de, en } from "~/config"
import { getPostsByLocale } from "~/utils"

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import TagComponent from "~/components/astro/tag.astro"
import { langs } from "~/i18n/ui"
import { getPostsByLocale } from "~/utils"

View file

@ -1,4 +1,5 @@
---
export const prerender = true
import { defaultLanguage } from "~/config"
---

View file

@ -1,3 +1,4 @@
export const prerender = true
import rss from "@astrojs/rss"
import { de, defaultLanguage, en } from "~/config"
import { getPostsByLocale } from "~/utils"