6 lines
486 B
Markdown
6 lines
486 B
Markdown
# Cloudflare devices build
|
|
|
|
- Cloudflare's Astro prerenderer runs in a Worker where `process.cwd()` is `/bundle`; local `public/` files cannot be read using `node:fs`.
|
|
- `src/pages/devices.astro` imports `public/devices/status.json?raw` and uses a Vite glob for the device image manifest. The generator and public URLs remain unchanged.
|
|
- Verified `npm run build` with the Cloudflare adapter, including temporary image fixtures to check image priority and output, and all device cards.
|