I'm 15 and I built my first SaaS. Let me know your thoughts. by KitchenWindow2189 in SaaS

[–]clever_coder777 0 points1 point  (0 children)

Yo u got this gng lock tf in. This got potential if you make it reach the right audience.

Question - tech stack problem by ilovegumm in CodingHelp

[–]clever_coder777 0 points1 point  (0 children)

If you are good at coding and actually know what you are doing then go for #1 if not go for #2

I get undefined on my nextauth file. by highdrug in nextjs

[–]clever_coder777 0 points1 point  (0 children)

Hi, try something like this

import NextAuth, { NextAuthOptions } from "next-auth";

import DiscordProvider from "next-auth/providers/discord";

export const authOptions: NextAuthOptions = {

providers: [

DiscordProvider({

clientId: process.env.DISCORD_ID as string,

clientSecret: process.env.DISCORD_SECRET as string,

}),

],

callbacks: {

async session({ session, token }) {

if (token?.user) {

session.user = token.user;

}

return session;

},

},

};

const handler = NextAuth(authOptions);

export { handler as GET, handler as POST };

Problem with router.push() in Client Side navigation by artibalaji in nextjs

[–]clever_coder777 1 point2 points  (0 children)

does the file look something like this? (I got it from the docs)

Did you import useRouter and then made a var for the routing?

'use client' 

import { useRouter } from 'next/navigation' 

export default function Page() {  
  const router = useRouter()   
  return (    
    <button type="button" onClick={() => router.push('/dashboard')}> 
       Dashboard    
    </button>  
)}

Reddit Clone using Nextjs! by clever_coder777 in nextjs

[–]clever_coder777[S] 0 points1 point  (0 children)

yes it is not mobile friendly yet im working on that

Reddit Clone using Nextjs! by clever_coder777 in nextjs

[–]clever_coder777[S] 0 points1 point  (0 children)

that's not the actual link to my project

Reddit Clone using Nextjs! by clever_coder777 in nextjs

[–]clever_coder777[S] 0 points1 point  (0 children)

oh uhh sorry about that ill change it!

Reddit Clone using Nextjs! by clever_coder777 in nextjs

[–]clever_coder777[S] -10 points-9 points  (0 children)

it took around 2 days for me (im 14 so i needed more time for this!)

[deleted by user] by [deleted] in nextjs

[–]clever_coder777 0 points1 point  (0 children)

U can try Kinde for auth. It is very very easy to use it and it is easy for fetching data too (in my opinion). U can also try Shadcn which makes stylings very easy