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
// > Language-based redirects always match against the first language reported by the browser in the Accept-Language header regardless of quality value weighting.
50
48
// while Next.js matches on every language: https://github.com/vercel/next.js/blob/5d9597879c46b383d595d6f7b37fd373325b7544/test/unit/accept-headers.test.ts
51
49
'Accept-Language': 'jp, fr;q=0.9',
52
-
Accept: '*/*',
50
+
// make sure we don't use cached results
53
51
cookie: '__prerender_bypass=1',
54
52
},
55
53
}).then((response)=>{
56
-
// we don't expect for function handler to return a redirect
54
+
// make sure we didn't hit SSR handler - not ODB and nothing else handles this request
55
+
// once platform starts supporting more languages in Accept-Language header - this test
56
+
// will start failing because then we will get platform level redirect
0 commit comments