Allow next
argument to requestHandler
#1294
Rich-Harris
started this conversation in
Ideas
Replies: 1 comment
-
Makes sense! New prioritized issue created to track: #1295 (Until GH gives us a "transfer discussion to issue" button, I'm stuck copy-pasting) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose you have a situation like this:
Importantly, the SSR framework is responsible for rendering custom 404 pages.
Serving the contents of
public
then falling through to other handlers is straightforward enough, but Snowpack doesn't allow requests to fall through to another layer:Instead, you have to ensure that Snowpack is the final handler...
...but this denies the SSR framework the opportunity to render a custom 404.
What if Snowpack only served a 404 response if the third argument to
requestHandler
wasn't provided?Beta Was this translation helpful? Give feedback.
All reactions