Next.js Discord

Discord Forum

Custom error folder path & layout

Unanswered
Atlantic mackerel posted this in #help-forum
Open in Discord
Atlantic mackerelOP
Hello Guys, Im trying to create custom error handling

But I don't know how to separate folder for just error_handling
folder structure like below

erros 
    - 404.tsx
    - 500.tsx


Any idea to solve this problem? (I guess using a nextjs config but there's no parameter for to do this.

2 Replies