Skip to content

Best way to show Landing or Dashboard Page, based on Session? #2274

Answered by flybayer
niklasgrewe asked this question in Q&A
Discussion options

You must be logged in to vote

That code looks exactly right. If you don't want /landing or /dashboard pages to work, then put those components elsewhere in the file system like this:

app/pages/login.tsx -> app/components/Login.tsx

Any components inside a pages folder will be exposed at a URL. To not have a url, put the components in a different folder.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by niklasgrewe
Comment options

You must be logged in to vote
2 replies
@flybayer
Comment options

@tafelito
Comment options

Comment options

You must be logged in to vote
2 replies
@flybayer
Comment options

@tafelito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants