---
title: "Posts — Page 8 - Benjamin"
description: "A curious software engineer based in Skopje, North Macedonia, solving engineering problems, building products people use, and sharing what I learn along the way. Page 8 of 11."
url: "/page/8"
canonical_url: "https://bfzli.com/page/8"
source_url: "https://bfzli.com/page/8.md"
type: "prose"
updated: "2026-11-06"
---

> Markdown copy of https://bfzli.com/page/8. Append `.md` to any page path on bfzli.com for its markdown twin. Full index: https://bfzli.com/llms.txt

# Posts — page 8 of 11

- [Cloudflare Workers Reject `crypto.createHash()` with `ReferenceError: crypto is not defined`](https://bfzli.com/cloudflare-workers-reject-crypto-createhash-with-referenceerror-crypto-is-not-defined.md) — A Node crypto API crashes in Workers because the runtime exposes Web Crypto, not `node:crypto` globals.
- [Node.js Fails to Start a Published CLI with Error: Cannot find module '/package.json'](https://bfzli.com/node-js-fails-to-start-a-published-cli-with-error-cannot-find-module-package-json.md) — A packaged CLI crashes because the entrypoint resolves package metadata from the wrong location.
- [Hono Cannot Match `c.req.param()` When a Static Route Shadows a Dynamic One](https://bfzli.com/hono-cannot-match-c-req-param-when-a-static-route-shadows-a-dynamic-one.md) — Route order in Hono can hide dynamic params and make `c.req.param()` return empty values.
- [Astro Throws ReferenceError: window is not defined When a Browser-Only Import Runs on the Server](https://bfzli.com/astro-throws-referenceerror-window-is-not-defined-when-a-browser-only-import-runs-on-the-server.md) — Astro SSR crashes when a module touches `window` during server rendering.
- [Vite Serves 404s for Assets After a Production Build Because the Base Path Is Wrong](https://bfzli.com/vite-serves-404s-for-assets-after-a-production-build-because-the-base-path-is-wrong.md) — Built assets 404 in production when Vite emits URLs for the wrong base path.
- [Vite Resolves the Wrong Package in a pnpm Workspace Because tsconfig Paths Leak Into Build Imports](https://bfzli.com/vite-resolves-the-wrong-package-in-a-pnpm-workspace-because-tsconfig-paths-leak-into-build-imports.md) — A pnpm monorepo can resolve a local source file instead of the published package entry point and break the build.
- [Next.js App Router Serves Stale Data Because a Server Component Fetch Is Cached](https://bfzli.com/next-js-app-router-serves-stale-data-because-a-server-component-fetch-is-cached.md) — Next.js can reuse a server component fetch result unless you set the right cache mode or revalidation behavior.
- [React Native Fails to Bundle When a Shared Module Imports Node Built-ins](https://bfzli.com/react-native-fails-to-bundle-when-a-shared-module-imports-node-built-ins.md) — Metro stops bundling when shared code pulls in fs, path, or crypto that the React Native runtime cannot provide.
- [Point a Custom Domain at Cloudflare Pages Without Leaving the Site on the Default Subdomain](https://bfzli.com/point-a-custom-domain-at-cloudflare-pages-without-leaving-the-site-on-the-default-subdomain.md) — Cloudflare Pages stays on the generated pages.dev hostname until DNS and the Pages custom domain are configured together.
- [SvelteKit Throws ReferenceError: document is not defined During Server-Side Rendering](https://bfzli.com/sveltekit-throws-referenceerror-document-is-not-defined-during-server-side-rendering.md) — SvelteKit SSR crashes when a component touches document before the browser runs it; isolate browser-only code and gate it behind client checks.
