Closed EshaanAgg closed 1 year ago
Sure! I'll try to implement these changes!
@stnguyen90 Added the requested changes.
appwrite.json
, and included the same in the repository as well the README.md of the project.createdAt
attribute from theworkouts
collection and started using the in-built $createdAt
attribute for documents.navbar
component by the means of redirection: did this to avoid conflicts with the Nuxt 3 life cycle)@stnguyen90
I can't seem to replicate the issue. For me, the redirection is to /login
page after clicking on the logout
button.
This is the code for the handleLogout
function which ensures the same.
@stnguyen90
/
after logging out, and it redirected me to /workouts
instead of /login
.I have posted the same question here on StackOverflow, as I wasn't able to debug it myself. Any help or possible causes would be appreciated :)
@stnguyen90 Pushed a new commit. Since I wasn't able to figure out the reason for the error, I decided to remove redirection from the home page, and instead created buttons in the navbar that enable users to navigate on the basis of the fact if they are logged in or not, and the current page they are on.
Did you try rebuilding without SSR?
I did but no avail.
@EshaanAgg npm run dev
seems to work for me:
How are you running it?
@stnguyen90
Running it the same way. The errors arise when I browse to the website on localhost
and navigate around.
Update: Deleted all the cache and then used the latest code with ssr
disabled, and finally no errors logged to the console. ðŸ˜
Thanks so much @stnguyen90! Can't explain how much I appreciate you taking out the time to review my code multiple times!
Thank YOU! For your hard work on the app!
THANK YOU! All changes merged 🥳
Please reach out to me on our Discord server if you would like to claim your Appwrite swags! As a way of saying thank you, we would also love to invite you to join the Appwrite organization on GitHub. Please share your GitHub username with us on Discord. Â
You can accept the invite by visiting https://github.com/orgs/appwrite/invitation. By joining our team, you will officially be an Appwrite maintainer on GitHub.
You can change your membership visibility settings, so your new Appwrite team membership badge will show up on your personal GitHub profile.
Please feel free to look for more PRs you might be interested in helping with on our long list of Hacktoberfest friendly issues and help make Appwrite better :)
What does this PR do?
Adds a demo for Nuxt 3 + Appwrite so that the developer community has get started with Appwrite more easily in future! You can checkout the app here!
Related PRs and Issues
Have you read the Contributing Guidelines on issues?
Yes.