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
// A. misses update and just receives `{ envValue: 'mac', mpa: false }`
118
+
// B. triggers error on server resulting in MPA: `{ envValue: 'ipad', mpa: true }` and server logs: ⨯ [TypeError: Cannot read properties of undefined (reading 'polyfillFiles')] ⨯ [TypeError: Cannot read properties of null (reading 'default')]
119
+
// A is more common than B.
120
+
expect({ envValue, mpa }).toEqual({
121
+
envValue:
122
+
isPPREnabledByDefault&&!process.env.TURBOPACK
123
+
? // FIXME: Should be 'ipad' but PPR+Webpack swallows the update reliably
124
+
'mac'
125
+
: 'ipad',
126
+
mpa: false,
127
+
})
128
+
}finally{
129
+
awaitnext.patchFile(envFile,envContent)
130
+
}
131
+
})
132
+
57
133
it('should update server components pages when env files is changed (nodejs)',async()=>{
0 commit comments