fix: replace revalidate with cache force-cache for SSG compatibility
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user