pnpm installSENTRY_AUTH_TOKEN=fake-token pnpm run buildExpected: build succeeds.
Actual: build logs an error during prerendering static routes with:
TypeError: addEventListener(): useCapture must be false
and writes an empty prerendered file:
wc -c dist/client/index.html
# 0 dist/client/index.htmlIn astro.config.mjs, change Cloudflare adapter to:
adapter: cloudflare({
configPath: './wrangler.jsonc',
prerenderEnvironment: 'node'
})Then rerun:
SENTRY_AUTH_TOKEN=fake-token pnpm run buildBuild succeeds.