Skip to content

Commit

Permalink
add changeset for cloudflare#585 (cloudflare#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz authored Dec 13, 2023
1 parent 37260e2 commit a4efc7b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .changeset/tender-suns-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@cloudflare/next-on-pages': patch
---

ignore invalid `_error` functions in the App router

In the App router, error boundaries are implemented as client components (see: https://nextjs.org/docs/app/api-reference/file-conventions/error),
meaning that they should not produce server side logic.

The Vercel build process can however generate `_error.func` lambdas (as they are useful in the
Vercel network I'd assume), through experimentation we've seen that those do not seem to be
necessary when building the application with next-on-pages so they should be safe to ignore.

The changes here make such invalid `_error.func` lambdas (if present) ignored (as they would otherwise
cause the next-on-pages build process to fail)

0 comments on commit a4efc7b

Please sign in to comment.