You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now, if you visit apply.hackbeanpot.com on a cold cache, it takes kinda long to load the page, like between 2-5 seconds. this is not ideal.
basically, it's because we're trying to SSR the index page, to either redirect to login or show dashboard. HOWEVER this is slow because we need to hit mongo in order to know which page to load.
instead, we should remove SSR and just make the login page /, and move the dashboard page to /dashboard
also get rid of the serverSideProps or whatever the SSR function is in the CURRENT index page (soon to be dashboard page)
The text was updated successfully, but these errors were encountered:
right now, if you visit apply.hackbeanpot.com on a cold cache, it takes kinda long to load the page, like between 2-5 seconds. this is not ideal.
basically, it's because we're trying to SSR the index page, to either redirect to login or show dashboard. HOWEVER this is slow because we need to hit mongo in order to know which page to load.
instead, we should remove SSR and just make the login page /, and move the dashboard page to /dashboard
also get rid of the serverSideProps or whatever the SSR function is in the CURRENT index page (soon to be dashboard page)
The text was updated successfully, but these errors were encountered: