Nuxt Fullstack Linear Clone β SSR/Auth Help
Hi everyone
,
I'm working on a fullstack Nuxt app (Linear clone) and I have two major issues:
First visit: The login page loads with broken styles. I have to refresh the page to see the correct UI.
Home page: When I refresh the home page, I get a 500 error, while refreshing other pages works fine.
Here's some context:
I use a Pinia store auth with a checkAuth function:
It feels like an SSR / hydration issue with the store and middleware, but Iβm not sure how to fix it.
Does anyone have suggestions for handling first-visit login styles and preventing 500 on refresh for protected pages?
Repo link : https://github.com/ElvinKyungu/linear-nuxt-fullstack/
Preview link: https://linear-ehn.pages.dev/login
Thanks a lot!
I'm working on a fullstack Nuxt app (Linear clone) and I have two major issues:
First visit: The login page loads with broken styles. I have to refresh the page to see the correct UI.
Home page: When I refresh the home page, I get a 500 error, while refreshing other pages works fine.
Here's some context:
I use a Pinia store auth with a checkAuth function:
It feels like an SSR / hydration issue with the store and middleware, but Iβm not sure how to fix it.
Does anyone have suggestions for handling first-visit login styles and preventing 500 on refresh for protected pages?
Repo link : https://github.com/ElvinKyungu/linear-nuxt-fullstack/
Preview link: https://linear-ehn.pages.dev/login
Thanks a lot!
GitHub
A sleek and efficient project management interface inspired by Linear. Built with Nuxt.js, GSAP, Tailwindcss and and Nuxt UI, it enables seamless issue tracking, project management, and team collab...
