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
Fixes a few failing deployment tests that weren't validated when landed
last week.
- next.cliOutput is not available when deployed because it's part of
runtime logs
- status code changes on Vercel because POSTing to a static 404 page is
treated differently.
'Failed to find Server Action "abc123". This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'
20
-
)
18
+
19
+
// Runtime logs and custom headers are not forwarded to the client when deployed.
20
+
if(!isNextDeploy){
21
+
expect(next.cliOutput).toContain(
22
+
'Failed to find Server Action "abc123". This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'
23
+
)
24
+
}
21
25
})
22
26
23
-
it('should 404 when triggering an MPA action on an app with no server actions',async()=>{
27
+
it('should error when triggering an MPA action on an app with no server actions',async()=>{
'Failed to find Server Action. This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'
40
-
)
42
+
43
+
// Runtime logs are not available when deployed.
44
+
if(!isNextDeploy){
45
+
expect(next.cliOutput).toContain(
46
+
'Failed to find Server Action. This request might be from an older or newer deployment.\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'
0 commit comments