Hybrid output rendering

- Changed output to `hybrid` instead of `server`
- Bugfixes to ShowcaseTabs (iamge sizing)
- Changes due to hybrid rendering
This commit is contained in:
Cyril Šebek 2024-06-21 10:59:02 +02:00
parent a1b94ae545
commit 08e38d4d91
Signed by: blboun3
SSH Key Fingerprint: SHA256:ESaOKDAPaR/9j4DJ3sU4VdxTcL7qWUxpAyPSK2LLKbY
6 changed files with 9 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
output: "server",
output: "hybrid",
adapter: node({
mode: "standalone",
}),

View File

@ -36,7 +36,7 @@ export function ShowcaseTabs({ currentLocale }) {
<span className="text-pretty">{item.description}</span>
</CardDescription>
</CardHeader>
<CardContent className="h-[85%] w-full">
<CardContent className="w-full max-h-[78%] lg:h-full">
<div className="h-full w-full">
<img
src={item.image}

View File

@ -40,6 +40,7 @@ const { Content } = await page.render();
<a href={`${Astro.url.origin}/${Astro.currentLocale}/blog/tags/${tag}`}>#{tag}</a>
)}
</div>
{ // @ts-ignore }
<Separator className="my-4"/>
</div>
<Content />

View File

@ -32,7 +32,8 @@ const songs = await getCompositions()
<div class="p-4">
<h4 class="mb-2 text-3xl font-semibold leading-none text-foreground">{t("music")["title"]}</h4>
<p class="mb-4 text-md leading-none text-foreground">{t("music")["description"]}</p>
<Separator className="my-4"/>
{ // @ts-ignore }
<Separator className="my-4"/>
<CompositionsList songs={songs}/>
</div>
</SinglePageBlogMode>

View File

@ -1,3 +1,5 @@
export const prerender = false;
import rss from '@astrojs/rss';
import { getBlogPosts } from "../../content/config";

View File

@ -1,5 +1,5 @@
---
export const prerender = true;
export const prerender = false;
import type { GetStaticPaths } from "astro";
import MainLayout from "../layouts/MainLayout.astro";
@ -15,7 +15,7 @@ export const getStaticPaths = (() => {
const { lang } = Astro.params
// Don't remove - redirects user to language version for the preffered language
// Don't remove
if (Astro.preferredLocale) {
return Astro.redirect(`/${Astro.preferredLocale}/`);
}