Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(templates): ignore wrangler when bundling to fix template styles (#14067)
### What? Adds the missing `/* webpackIgnore: true */` annotation when importing wrangler, as in the original OpenNext patch. ### Why? It looks like Webpack messes up the template styles when bundling the Cloudflare template, which causes some issues such as black text on black background or larger than usual font size. ### How? By telling Webpack to ignore wrangler when bundling. This solution was found by @nwong212 in the original issue, I'm just submitting the fix after checking my self that it indeed fixes the bundling. Fixes #13989 Co-authored-by: Ricardo Tavares <rtavares@cloudflare.com>
R
Ricardo Tavares committed
c135bf0a8763e738fd562e80c3a116264b868b76
Parent: c59df45
Committed by GitHub <noreply@github.com>
on 10/4/2025, 12:12:40 AM