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:
parent
a1b94ae545
commit
08e38d4d91
@ -9,7 +9,7 @@ import react from "@astrojs/react";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: "server",
|
||||
output: "hybrid",
|
||||
adapter: node({
|
||||
mode: "standalone",
|
||||
}),
|
||||
|
@ -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}
|
||||
|
@ -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 />
|
||||
|
@ -32,6 +32,7 @@ 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>
|
||||
{ // @ts-ignore }
|
||||
<Separator className="my-4"/>
|
||||
<CompositionsList songs={songs}/>
|
||||
</div>
|
||||
|
@ -1,3 +1,5 @@
|
||||
export const prerender = false;
|
||||
|
||||
import rss from '@astrojs/rss';
|
||||
import { getBlogPosts } from "../../content/config";
|
||||
|
||||
|
@ -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}/`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user