cdi.dev
TTCTheo's Typesafe Cult
•Created by jeff.kershner on 4/21/2023 in #questions
Silly Newbie NextJS question
You are right, one common technique to prevent nav items from shifting when a logo loads is to set a fixed width for the logo (try a w-10 on your div above the image and see if it does the trick).
Also, looking at your code, it seems you're not using the next/image component to optimise the image.
You can find its docs here: https://nextjs.org/docs/api-reference/next/image
As it seems that the logo is an external image, if you plan to use the next/image with external images, you will have to either set the external domains in the next.config.js
Or the recommended way remotePatterns:
If you're going to use only local images, you won't need to add that.
5 replies
TTCTheo's Typesafe Cult
•Created by kenny on 4/17/2023 in #questions
Next-Auth: Try signing in with a different account.
From my knowledge, the only time you can get
api/auth/signin?error=OAuthAccountNotLinked
is "If the email on the account is already linked, but not with this OAuth account". The OAuthAccountNotLinked
error is also documented in the https://next-auth.js.org/configuration/pages#sign-in-page10 replies
TTCTheo's Typesafe Cult
•Created by kenny on 4/17/2023 in #questions
Next-Auth: Try signing in with a different account.
That's probably because you are trying to access it through different social accounts that share the same email. If you've made an account, let's say, with Linkedin and then with Google, and both of them share the same email, nextauth will throw an error.
You can check https://next-auth.js.org/faq#security for reference. - The "When I sign in with another account with the same email address, why are accounts not linked automatically?" question in particular
10 replies