fix: dont import node:path in clientside components

This commit is contained in:
Max Richter
2025-10-31 15:41:46 +01:00
parent 7e60327940
commit 79d692c2c6
21 changed files with 68 additions and 67 deletions

View File

@@ -10,7 +10,7 @@ import { RedirectSearchHandler } from "@islands/Search.tsx";
import PageHero from "@components/PageHero.tsx";
import { Star } from "@components/Stars.tsx";
import { MetaTags } from "@components/MetaTags.tsx";
import { fetchResource } from "@lib/resources.ts";
import { fetchResource } from "@lib/marka.ts";
export const handler: Handlers<{ article: Article; session: unknown }> = {
async GET(_, ctx) {
@@ -27,7 +27,7 @@ export default function Greet(
) {
const { article, session } = props.data;
const { author = "", date = "", articleBody = "" } = (article?.content || {});
const { author = "", date = "", articleBody = "" } = article?.content || {};
const content = renderMarkdown(
removeImage(articleBody, article.content.image),

View File

@@ -9,8 +9,7 @@ import { parseResourceUrl, searchResource } from "@lib/search.ts";
import { GenericResource } from "@lib/types.ts";
import { ResourceCard } from "@components/Card.tsx";
import { Link } from "@islands/Link.tsx";
import { fetchResource } from "@lib/resources.ts";
import { fetchResource } from "@lib/marka.ts";
export const handler: Handlers<
{ articles: Article[] | null; searchResults?: GenericResource[] }