You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: templates/with-cloudflare-d1/src/payload.config.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,11 @@ export default buildConfig({
46
46
47
47
// Adapted from https://github.com/opennextjs/opennextjs-cloudflare/blob/d00b3a13e42e65aad76fba41774815726422cc39/packages/cloudflare/src/api/cloudflare-context.ts#L328C36-L328C46
0 commit comments