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

Enhancement: "New Post" loads for a really long time #12

Open
steven-tey opened this issue Nov 6, 2022 · 4 comments
Open

Enhancement: "New Post" loads for a really long time #12

steven-tey opened this issue Nov 6, 2022 · 4 comments

Comments

@steven-tey
Copy link

Not sure why hitting "New Post" takes a really long time to load (~3-4s):

CleanShot.2022-11-05.at.19.38.46.mp4
@Geczy
Copy link
Contributor

Geczy commented Nov 7, 2022

it seems all the pages are taking 3s to load with no suspense management

@Geczy
Copy link
Contributor

Geczy commented Nov 8, 2022

i think this might be the next/auth being in server side instead of client side, it will slow the site down :(

@steven-tey
Copy link
Author

might wanna use unstable_getServerSession instead of getSession: https://next-auth.js.org/configuration/nextjs#unstable_getserversession

@shadcn
Copy link
Collaborator

shadcn commented Nov 8, 2022

I updated the site to use unstable_getServerSession yesterday.

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

3 participants