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

This commit is contained in:
Ilia Mashkov
2026-04-23 21:45:40 +03:00
parent 5dbf5e34c2
commit f0fccd55f1
6 changed files with 154 additions and 32 deletions
@@ -0,0 +1,22 @@
import type { PageContentRecord } from '$shared/api';
import { getFirstRecord } from '$shared/api';
/**
* Intro section component.
* Displays primary introduction content from PocketBase.
*/
export default async function IntroSection() {
const data = await getFirstRecord<PageContentRecord>('intro', {
filter: 'slug = "intro"',
});
if (!data) {
return <p>Loading intro content...</p>;
}
return (
<div className="prose prose-lg dark:prose-invert max-w-none">
<p>{data.content}</p>
</div>
);
}