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
Hi,
I'm playing with the directory handler, which greatly simplified my code, but I'm missing the possibility to redirect to a custom 404 page when the file does not exist.
Is there a way to do that, like with a reverse proxy or a function in the parameters of the handlers?
Thank you,
Jb
The text was updated successfully, but these errors were encountered:
Sorry for the delayed response but this issue slipped by me some somehow.
Inert does not currently provide any such functionality by itself as it is more of a server level issue. See the onPostHandler section in https://github.com/hapijs/inert#customized-file-response for an example on how to handle this.
If you need further help, I suggest you make a post in the hapijs/discuss repo.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
supportQuestions, discussions, and general support
Hi,
I'm playing with the directory handler, which greatly simplified my code, but I'm missing the possibility to redirect to a custom 404 page when the file does not exist.
Is there a way to do that, like with a reverse proxy or a function in the parameters of the handlers?
Thank you,
Jb
The text was updated successfully, but these errors were encountered: