Help me with multiple rendering in production #66845
Unanswered
MohsinDev369
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am using "next": "^14.2.4", and I attached some logs of my next app in production. As you can see some pages are rendering multiple times, Especially "/api/auth/session" from nextauth, Let me know what code you need as I can't share the entire code publicly, Thanks in advance
![log-1](https://private-user-images.githubusercontent.com/110777862/339534510-8c44e1e0-1965-4508-85da-8f709086acba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzE1NjksIm5iZiI6MTcyNDQzMTI2OSwicGF0aCI6Ii8xMTA3Nzc4NjIvMzM5NTM0NTEwLThjNDRlMWUwLTE5NjUtNDUwOC04NWRhLThmNzA5MDg2YWNiYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QxNjQxMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MGU3OThjZTkxOTQxYWZjNTEzZGYwMTdjMjI2NTNhMWMxMmZjMDBjZGMyMmQ1ZGFmMjg2OGMwYTBmNTA2MDNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.dbBCQZIYPd5gQIvIfMAhAchkT0X3w1t7BsM2aTo8XcU)
![log-2](https://private-user-images.githubusercontent.com/110777862/339534520-a4efada8-ea61-4511-a16a-6a34ab81f75d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC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YmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QxNjQxMDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zODdkNzE2YWUyMTgwNzlmMjhmMzBlMGE1MDNhYWQ0NzMxMGY2M2I2ZTdjMTI0YmI5YTk4YjlmZDM1MTRhYzJmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.iz_T-0U2vlosVGl7tMZqfxugvcVPm1lMZFsYZMpMzLc)
my auth.ts `import NextAuth from "next-auth"
import Google from "next-auth/providers/google"
export const { auth, handlers, signIn, signOut } = NextAuth({
})`
And for /api/auth/[...nextauth]/route/ts
import { handlers } from "@/auth" export const { GET, POST } = handlers
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions