-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: user auth #34
feat: user auth #34
Conversation
c66bab6
to
f7ccb18
Compare
<Footer /> | ||
</FakeTreeDataContextProvider> | ||
</TreeDataContextProvider> | ||
<ReactQueryDevtools initialIsOpen={false} position="bottom" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to get the a variable out of the .env? We could hide the dev tools on production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hidden when the release version is created, or when NODE_ENV
is set to production
.
|
||
export const Route = createFileRoute('/')({ | ||
export const Route = createFileRoute('/_protected/')({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the route for the dashboard .../_protected/dashboard
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tanstack Router ignores paths that begin with _. This makes it possible to store files in a folder without creating a route through this folder. Thus _protected/map
becomes /map
. All files located in this _protected
folder are regarded as a ‘protected’ resource. If a path is to be freely accessible, the file only needs to be moved from the _protected
folder and is then freely available under the same URL.
Close #16