Please HELP!!! I have an annoying issue/bug in my NextJS app or Vercel ?? (I know it’s Christmas, sorry; but this has a big impact on prod)
I’m fetching data in a server component, then I want to conditionally show a Button based on certain condition using logical and (&&) or ternary operator (? :).
Anyway everything works on dev environment, but when deployed on Vercel, nothing is shown.
I’ve already purged vercel cache, redeployed app, but I didn’t work. WHY ??
I’m using Next 15.2.6 but looking at deployment summary on Vercel they use Next 15.5.9. I don’t know if that’s cause of the issue (or Not).
const Main = async () => { const { user } = await authenticateUser(); .....
return ( <div className="..."> {user?.account_type === "Free" && ( <Button className="..."> Upgrade </Button> )} </div> );};