Skip to content
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

Get rid of SSR #150

Open
ghost opened this issue Jan 22, 2022 · 0 comments
Open

Get rid of SSR #150

ghost opened this issue Jan 22, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 22, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants