portfolio / live contenttypescript export async function getSite() {
const response = await fetch(
`${process.env.API_URL}/api/v1/public/site`,
{ cache: "no-store" }
);
if (!response.ok) {
throw new Error("Content unavailable");
}
return response.json();
}
details
A sample from this portfolio’s architecture: read content on the server without caching, so saved changes appear on the next request.
portfolio / project filterstypescript const visibleProjects = projects.filter(
(project) =>
selected.length === 0 ||
project.technologies.some((technology) =>
selected.includes(technology.id)
)
);
details
This portfolio uses inclusive technology filters: select multiple technologies to see projects matching any of them.
awards
*/