fix: replace revalidate with cache force-cache for SSG compatibility

This commit is contained in:
Ilia Mashkov committed 2026-04-24 09:34:27 +03:00
1 parent 5dbf5e34c2
commit f0fccd55f1
6 files changed
+154 -32

No files matched your search

@@ -0,0 +1,22 @@
import type { PageContentRecord } from '$shared/api';
import { getFirstRecord } from '$shared/api';
/**
* Bio section component.
* Displays personal biography content from PocketBase.
*/
export default async function BioSection() {
const data = await getFirstRecord<PageContentRecord>('bio', {
filter: 'slug = "bio"',
});
if (!data) {
return <p>Loading bio content...</p>;
}
return (
<div className="prose prose-lg dark:prose-invert max-w-none">
<p>{data.content}</p>
</div>
);
}