---
title: "Posts — Page 7 - Benjamin"
description: "A place where I share my thoughts and learnings 💭 Page 7 of 9."
url: "/page/7"
canonical_url: "https://bfzli.com/page/7"
source_url: "https://bfzli.com/page/7.md"
type: "prose"
updated: "2026-10-23"
---

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

# Posts — page 7 of 9

- [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.
- [Cloudflare Pages Functions Read undefined Environment Variables at Runtime](https://bfzli.com/cloudflare-pages-functions-read-undefined-environment-variables-at-runtime.md) — Make Cloudflare Pages Functions see bound secrets and vars instead of undefined values.
- [Next.js Cannot Optimize Images from an Unconfigured Remote Host](https://bfzli.com/next-js-cannot-optimize-images-from-an-unconfigured-remote-host.md) — Configure next/image so remote images stop failing with host validation and optimization errors.
- [Hono Cannot Read c.req.param() After a Middleware Forgets next()](https://bfzli.com/hono-cannot-read-c-req-param-after-a-middleware-forgets-next.md) — Fix missing route params in Hono by preserving middleware flow and route context.
- [Cloudflare Workers Fail with TypeError: Body has already been used for Request](https://bfzli.com/cloudflare-workers-fail-with-typeerror-body-has-already-been-used-for-request.md) — Understand why a consumed Request body cannot be read twice in Workers and how to clone or buffer it safely.
