Next.js Discord

Discord Forum

Where to put global-error.tsx?

Answered
African Slender-snouted Crocodil… posted this in #help-forum
Open in Discord
African Slender-snouted CrocodileOP
I'm using route groups. Where should I put my global-error.tsx?

Here's my structure:

app/(dashboard)
app/(search)

should i put global-error.tsx in app/(dashboard), app/ or in both?
Answered by joulev
app/global-error.tsx
View full answer

4 Replies

Answer
African Slender-snouted CrocodileOP
so i only need one in total for my entire application?
yes
African Slender-snouted CrocodileOP
ok cool, thanks