#No such file or directory
12 messages · Page 1 of 1 (latest)
To change the response for non-existent endpoints in NestJS, create a custom exception filter that catches 404 errors and returns a custom message. Apply this filter globally or to specific routes.
What specifically are you wanting to get rid of here?
The index.html not found, it wasn't that error before if I remember. So I'm just wondering where its trying to search for that file?
I dont have any /app/static anywhere
I would guess you have a ServeStaticModule in place
Oh yeah that's right, so that automatically overrides the default error for non-existing endpoints?
I believe it becomes the fallback depending on the module configuration
So there must be some configuration for the module to probably opt-out/disable it?
What's your module look like?