Hi! How to not render header component on register and log in page.

I have put my <Header/> component in my _app.tsx under my SessionProvider. But relise now that i dont want my header to show in register and login page. Where do i place my header or do i create some sort of function. Thanks!
Solution:
Routing: Pages and Layouts
Create your first page and shared layout with the Pages Router.
Jump to solution
3 Replies
H
H14mo ago
im guessing u are using pages routes you can do what we call per-page layouts
Solution
H
H14mo ago
Routing: Pages and Layouts
Create your first page and shared layout with the Pages Router.
Tacoboi99
Tacoboi99OP14mo ago
That's what I ended up doing. Thanks!
Want results from more Discord servers?
Add your server