NizarAbiZaher / nizzy-starter

https://nizzystarter.com
99 stars 32 forks source link

Dashboard not uder auth #7

Open ketanmujumdar opened 2 weeks ago

ketanmujumdar commented 2 weeks ago

Firstly really awesome that you are doing this and making it opensource, loved your work.

However when I try to click on dashboard it is not under auth? Is there documentation where I can find where I can move it?

dpaulos6 commented 2 weeks ago

what do you mean? can you paste a screenshot of the issue?

rameskum commented 1 week ago

The question was about whether the dashboard is a protected route. If I am not mistaken, we can protect routes in middleware.ts

Including a boilerplate code in the middleware.ts file in the starter project might be a good feature.

dpaulos6 commented 1 week ago

The question was about whether the dashboard is a protected route. If I am not mistaken, we can protect routes in middleware.ts

Including a boilerplate code in the middleware.ts file in the starter project might be a good feature.

Oh got it! Yes it is possible to do so, you can either change middleware.ts, or on the dashboard file, import session and redirect if it's null.

I'm considering making a docs page for this project, to cover all aspects and have examples on how to further customize it and all of that. Would that be a good idea?

rameskum commented 1 week ago

Yes, documentation should be suitable for users to understand and customize as per their needs.

dpaulos6 commented 1 week ago

Thanks for your feedback! Documentation is now under construction.