🔮 Let's build Twitter 2.0 with REACT.JS! (Next.js, Sanity CMS, Typescript, SSR, Tailwind & NextAuth)

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 06. 2024
  • 🚹 Join the world’s BEST developer community & course Zero to Full Stack Hero: www.papareact.com/course
    đŸ«‚ Join my Community, "University of Code" for FREE: www.universityofcode.com
    🔮 LOOKING FOR THE CODE? đŸ› ïž
    links.papareact.com/github
    đŸ“© Want coding problems (with solutions!) delivered to your inbox daily? www.papareact.com/dailycoding...
    I asked Sanity to hook up some free stuff for this video... They made a custom đŸ”„ boosted free plan 👉 www.sanity.io/sonny
    ---
    The much anticipated build is FINALLY HERE!
    Join me as I build the TWITTER 2.0 CLONE with REACT & NEXT.js, you'll learn how to do the following in this build:
    👉 You’ll be able to build a Login authentication flow with Google or Twitter API using NextAuth
    👉 You’ll implement the Ability to BAN a tweet via the Sanity Platform
    👉 You’ll learn how to create structured content, for example how a single tweet can have many comments referenced to it!
    👉 You’ll learn how to write robust code with Typescript!
    👉 You’ll learn how to leverage Next.js Server Side Rendering to get a FASTER page load time!
    👉 You’ll learn to create your own API backend endpoints to communicate safely with your frontend!
    👉 You’ll learn how to add data to a Sanity CMS Backend from the frontend using Mutations!
    👉 You’ll learn how to Query data using the popular GROQ query language
    👉 You’ll learn about Tailwind CSS and how to build this awesome Responsive website!
    👉 You’ll learn how to implement Tweet Functionality & the ability to write a thread of comments!
    👉 You’ll even learn how to create silky smooth React Toast Notifications!
    👉 You’ll be able to Deploy to Vercel and have the site online by the end of this tutorial!
    + SO MUCH MORE!
    đŸŽ™ïž PODCAST
    links.papareact.com/podcast
    🌍 SOCIALS:
    Instagram: links.papareact.com/instagram
    Facebook: links.papareact.com/facebook
    LinkedIn: links.papareact.com/linkedin
    Twitter: links.papareact.com/twitter
    Discord: links.papareact.com/discord
    Newsletter: links.papareact.com/newsletter
    ❀ SUPPORT
    PAPA Merch: links.papareact.com/merch
    Donate: links.papareact.com/donate
    🕐 TIMESTAMPS:
    00:00 Introduction
    00:44 Build Showcase
    04:40 Sanity Sponsorship
    06:00 Build Explanation
    07:20 Setting up Next.js & Tailwind CSS
    10:51 Initialising the Build
    15:14 Building the Sidebar Component
    18:51 Building the SidebarRow Component
    28:47 Building the Feed Component (1/2)
    32:26 Building the Widgets Component
    39:00 Implementing Responsive Design
    47:53 Building the TweetBox Component
    59:27 Setting up Sanity
    01:11:12 Setting up Sanity Schemas
    01:23:59 Explaining and Implementing Server Side Rendering
    1:28:50 Creating a Type Definition File using TypeScript
    1:32:21 Pulling Tweets from Sanity to the Feed
    1:48:08 Building the Feed Component (2/2)
    1:50:06 Building the Tweet Component
    02:01:34 Implementing Comment Functionality
    02:23:37 Implementing react-hot-toast
    02:25:49 Implementing the Login Functionality using NextAuth
    02:44:47 Implementing the Image URL Functionality
    02:52:12 Adding Tweet Functionality using Mutations
    03:06:08 CHECK PINNED COMMENT! (Adding Comment Functionality)
    DISCLAIMER: This Video is made for informational and educational purposes only. We do not own or affiliate with Twitter and it's subsidiaries in any form. Copyright Disclaimer under section 107 of the Copyright Act 1976, allowance is made for “fair use” of this video for education purposes.
    #reactjs #nextjs #sanitycms #tailwindcss

Komentáƙe • 199

  • @SonnySangha
    @SonnySangha  Pƙed 2 lety +46

    ❗READ THIS FOR THE ENDING -> [CODE IS PINNED HERE]
    We hit a stream crash only for the last 10 minutes... to finish the build you simply have to complete the addComment.ts API endpoint & update the Tweet.tsx handleSubmit function!
    1) We just needed to complete the API endpoint
    2) Implement the HandleSubmit Functionality inside our Tweet component
    3) Deploy to Vercel ensuring you update the environment variables correctly! (I show this in other builds!)
    🌟THEN YOUR DONE!
    I have attached both code snippets with the finishing code inside! ENJOY 🚀
    Tweet.tsx: codepen.io/sonnysangha/pen/ZErbOKZ
    addComment: codepen.io/sonnysangha/pen/QWQjEgV

    • @onlyforwork8774
      @onlyforwork8774 Pƙed 2 lety +1

      you were on a roll ... too bad it got interrupted close to the finish line

    • @dillonbarnes232
      @dillonbarnes232 Pƙed 2 lety

      Such a shame it crashed! Really looking forward to making this one! Thanks for all of the awesome content!

    • @SonnySangha
      @SonnySangha  Pƙed 2 lety +7

      I know guys! But the solution is right there don’t worry!

    • @aindrailsantra6886
      @aindrailsantra6886 Pƙed 2 lety +1

      I am facing issues in deployment in vercel. Can you make a part 2 or a short to show that part

    • @beastnighttv
      @beastnighttv Pƙed 2 lety +1

      @@aindrailsantra6886 u can check in the other builds, how he did it, or asked for help in the discord server

  • @nl5410
    @nl5410 Pƙed 2 lety +7

    Thank you Sonny for this wonderful build! I specially appreciated you using Typescript in this one. Typescript is becoming so popular that I feel like it’s not even worth doing any projects without it so I appreciate it a lot! I hope that there will be more Typescript builds in future. Peace and Blessings from Istanbul!

  • @andyb9990
    @andyb9990 Pƙed 2 lety +3

    Hey Sonny, looking forward to this build! I needed more work with Typescript. Keep up the good work brother!

  • @binu_joy
    @binu_joy Pƙed 2 lety +1

    This is amazing. Thanks a million Sonny & Jay.

  • @correctcode367
    @correctcode367 Pƙed 2 lety

    Thanks for your amazing content Sonny! You teach all of the stuff in your builds perfectly! ❀❀❀

  • @kevinfreeman9652
    @kevinfreeman9652 Pƙed rokem +2

    @49:35 somebody asked about the ordering of the tailwind classnames. Headwind is the plugin in vscode that automatically does this.

  • @jonjojr
    @jonjojr Pƙed rokem +1

    2:48:29 dude, let me tell you. I spent hours trying to understand ref, I come to this video and in less than 10 seconds I finally understand it. Such a simple concept when you explain it easily.

  • @DevBishwasBh
    @DevBishwasBh Pƙed 2 lety +1

    Thanks a lot brother, I'll be so happy a tutorial on Django and Next, that'll be a blessing for me. #respect for you guys, keep up the good work ❀

  • @PattyBeautCode
    @PattyBeautCode Pƙed 2 lety

    I have learned alot from this Live, Big thank you for doing this !!

  • @kevinfreeman9652
    @kevinfreeman9652 Pƙed rokem

    Not sure if anyone else was having this problem, but I used the component for the logo rather than the . The is difficult to style and needed to be wrapped in a div for styling purposes. Not sure if this is right, or if it was already mentioned. I read through many of the posts and didn't see a comment about this. I'm open to any other tips on this as well. Keep coding Papafam. I'm lovin the energy from these videos and discord.

  • @nicholasbazzoni7084
    @nicholasbazzoni7084 Pƙed 2 lety

    Awesome build. thanks so much for your tutelage

  • @user-nw8uy9uy7c
    @user-nw8uy9uy7c Pƙed 2 lety

    Even im vuejs developer (nuxtjs etc) i really learn a lot from you. Thank you !

  • @eliedeek7364
    @eliedeek7364 Pƙed 2 lety

    Awesome Stuff SONNY!!

  • @rahim.tn99
    @rahim.tn99 Pƙed 2 lety

    the Toast part bro, My heart melted and I smiled for 1 minute

  • @codekicks2171
    @codekicks2171 Pƙed 2 lety +1

    Thanks a lot man, Your tutorial is really awesome, Thanks a lot, Please keep making these videos

  • @taransingh7186
    @taransingh7186 Pƙed 2 lety

    You did a great Job Sonny!! Keep doing the great Work!!

  • @eliuddyn
    @eliuddyn Pƙed 2 lety

    Thanks so much bro... This is amazing đŸ”„đŸ”„

  • @barkamololimjonov5515
    @barkamololimjonov5515 Pƙed 2 lety +1

    Very useful. Thanks much. Hello from Uzbekistan, Central Asia ❀❀

  • @CreativeTutorialsWeb
    @CreativeTutorialsWeb Pƙed 2 lety +2

    What an amazing video đŸ”„đŸ”„

  • @KelvinAristy
    @KelvinAristy Pƙed 2 lety

    Amazing as always.

  • @jamestuttle
    @jamestuttle Pƙed 2 lety +2

    Well done and you make it so we all can learn :)!!!!

  • @ugurcatal9927
    @ugurcatal9927 Pƙed 2 lety

    Great content,again! thanks

  • @mukherjee.p
    @mukherjee.p Pƙed 2 lety

    Your channel is VALUE incarnate

  • @ramanujamkv
    @ramanujamkv Pƙed 2 lety

    very nice session. Thanks

  • @devkyu7674
    @devkyu7674 Pƙed 2 lety

    This is really COOL !

  • @SilvaOnTube
    @SilvaOnTube Pƙed rokem

    Mega Kudos Sonny. Great challenge. Awesome work. Finally everything worked for me, and now I'll try to deploy it.

    • @SonnySangha
      @SonnySangha  Pƙed rokem +1

      Thanks Ray!

    • @SilvaOnTube
      @SilvaOnTube Pƙed rokem

      @@SonnySangha Can you point me to deployment advice on Vercel for this? I'm slowly working through tons of dependency errors and when I deployed with no errors I got 500 Internal Server error on root. I'm now trying to go to the api endpoints: /api/getTweets works, but /api/auth/signin with Twitter worked once then gave me an error of invalid attempt...can't get back to that.

    • @SilvaOnTube
      @SilvaOnTube Pƙed rokem

      OK, I got it. The Vercel deployment worked. Now I have to test to see if Sanity is working and all the direct posting & image additions from the app itself. I'll let you know how it goes and put my Vercel link on here if all goes well.

    • @SilvaOnTube
      @SilvaOnTube Pƙed rokem

      Oops, spoke too soon. Sing In returns a 404. Localhost signin with Twitter provider works fine. I have to figure out why not on Vercel.

    • @SilvaOnTube
      @SilvaOnTube Pƙed rokem

      Sadly, I'm gonna have to leave it there for today. I'll start Sonny's tutorial on Next 13 to see if I can pick up some clues.

  • @SuperArnie1974
    @SuperArnie1974 Pƙed rokem

    Thanks Sonny a few hiccups but I'm now smashing well up to pulling queries

  • @SilvaOnTube
    @SilvaOnTube Pƙed rokem

    Damn, this is great. What a find!

  • @bakkas3128
    @bakkas3128 Pƙed rokem

    Sonny I have started building projects by watching your videos. Hey, that's cool dude.

  • @carlosvenegas8981
    @carlosvenegas8981 Pƙed rokem +1

    Just built it and deployed it! Thank you!

    • @hirensavani1501
      @hirensavani1501 Pƙed rokem

      did you face any error in deployment because I am having so if you can guide

  • @anaskhan4841
    @anaskhan4841 Pƙed rokem

    Best content creator everrrr!!!

  • @kay2care
    @kay2care Pƙed 2 lety

    All in One! Thanks.

  • @brianomondi5426
    @brianomondi5426 Pƙed 2 lety

    Much love from kenya 💯💯

  • @abishieks8069
    @abishieks8069 Pƙed 2 lety

    Why bro our papafam facing these canna tech issues frequently, I know, how it pains, but great job for your awesome content.
    Thank you😊

  • @victorkimura1
    @victorkimura1 Pƙed rokem

    Thanks so much, Sonny. God bless you

  • @BrodieTheAthlete
    @BrodieTheAthlete Pƙed 2 lety

    Thanks Sonny from Austrian đŸ”„

  • @haicoders737
    @haicoders737 Pƙed rokem

    you are amazing dude

  • @Dizzifer9538
    @Dizzifer9538 Pƙed rokem

    Scroll bar hide is super awsome

  • @nanlunglongtau2076
    @nanlunglongtau2076 Pƙed 4 měsĂ­ci

    Thank you so much

  • @cindyfernandes9710
    @cindyfernandes9710 Pƙed 2 lety

    Hey Sonny. Amazing video. I just finished the site and deployed to vercel. But tailwind is not working .. m I missing something???

  • @beastnighttv
    @beastnighttv Pƙed 2 lety +3

    49:14 Its a prettier plugin, you can check in your package.json there is a prettier-plugin-tailwind devDependency

  • @yugeshkk3062
    @yugeshkk3062 Pƙed rokem

    Thanks Anna.

  • @ManishSharma-bj8dz
    @ManishSharma-bj8dz Pƙed 2 lety

    Amazing đŸ”„

  • @ozodbekjumanov8763
    @ozodbekjumanov8763 Pƙed 2 lety

    Thanks for answer

  • @melethaphap4923
    @melethaphap4923 Pƙed rokem

    Hello papa react i want to say thank you thanks to you i am excited to learn front end you know? your channel is the best I have found your explanation is very easy to understand once again thank you teacher greetings from Indonesia

    • @SonnySangha
      @SonnySangha  Pƙed rokem

      Amazing thank you for the support!!!

  • @georgemalouf4298
    @georgemalouf4298 Pƙed 2 lety +1

    I miss building stuff with you brilliant Sonny. Nowadays, I’m extremely busy with a back-breaking project utilizing Apple’s development environment.

  • @patrickkioko8191
    @patrickkioko8191 Pƙed 2 lety +1

    Missed this, But i will take the challenge to go through it

  • @brayanmauricio6920
    @brayanmauricio6920 Pƙed 2 lety

    hi,I greet you from Colombia thanks for such good tutorials

    • @SonnySangha
      @SonnySangha  Pƙed 2 lety

      You’re welcome!! Thanks for supporting the #PAPAFAM !!!

  • @graftdigital
    @graftdigital Pƙed rokem

    Hey Sonny/Jay/PapaFam, enjoyed the tutorial and managed to finish it and deploy even though the video was cut short. I'm having issues with the deployed version though as the tweets are not being updated immediately (comments are fine) when posted - they appear in Sanity straight away but they appear only on page refresh.

  • @andrewkim1247
    @andrewkim1247 Pƙed rokem

    This is awesome. How would you do dynamic routing in next, ex: {username}/post/{postId} ?

  • @luisvaldivia592
    @luisvaldivia592 Pƙed 2 lety +2

    Is there an issue with twitter embed? I'm getting a 'net::ERR_ABORTED 400' issue and the feed doesn't show up

  • @drphil2424
    @drphil2424 Pƙed 2 lety

    PAPA SONNY THE GOD OF REACT

  • @ToddDenmar
    @ToddDenmar Pƙed 2 lety

    hello Sonny! is it better to use sprite images?

  • @canhamzacode
    @canhamzacode Pƙed 2 lety

    Amazing

  • @nicholasbazzoni7084
    @nicholasbazzoni7084 Pƙed 2 lety

    Once again really fun build. ive gotten the app to deploy but now theres a CORS error issue i've been confronted with. The fetches go through to sanity but i must refresh the app in order to view the posts. whats the best way to approach this problem?

    • @wesatat
      @wesatat Pƙed 2 lety

      Hey man, I got the same issue. I'm hoping we can try fix it together. I'm going to try a bunch of things and let you know

  • @joaonascimento3574
    @joaonascimento3574 Pƙed rokem +1

    Hi everyone! First of all! i need to say thanks for sonny to upload this majestic tutorial for us! This is teaching me a lot! but on the implementing comment funcionality i get caught up with this browser error: "Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data". Did anyone get caught with this error ? how did you solve it ?

  • @demptd13
    @demptd13 Pƙed rokem +1

    I stopped at Twitter authentication and can't move on, I registered in Twitter, but in order to get the keys in Twitter Developer you need to link your phone number to your Twitter account, for 2 days the message from the code is supposedly sent, but in fact nothing comes...

  • @GMERT
    @GMERT Pƙed 2 lety

    Sonny- you never stop amazing me. How can we program this code to work with a blockchain wallet signer and connect it to moralis. Kindly do a video on this

  • @captaintechworld
    @captaintechworld Pƙed 2 lety +1

    1:04:00 -- to begin day 2 from here

  • @khushtarfaraz563
    @khushtarfaraz563 Pƙed 2 lety +1

    You are just amazing SonnyđŸ”„đŸ”„đŸ”„...I have learnt a lot from you...I had this question that how do you build the whole app before rebuilding it live...how do you nail css part...do you read documentation... basically I wanted to know that how you learn new technologies?

    • @RayRayAndCode
      @RayRayAndCode Pƙed 2 lety

      U speak my mind

    • @RayRayAndCode
      @RayRayAndCode Pƙed 2 lety

      How I wish Sonny can do a video and share is tip on how he learn so fast

    • @rogeralexander1539
      @rogeralexander1539 Pƙed 2 lety +2

      He has prebuilt the app and then when building the app live, he looks at the other built consistently. Most youTubers do this.

  • @northerncaliking1772
    @northerncaliking1772 Pƙed 2 lety

    the active scale animation on the refresh button wont work. it spins but wont do the scale animation.

  • @vitotennis
    @vitotennis Pƙed rokem

    for the last part "post the comment" has not finish after 3:17:52 :(.. but I think i could finish on my own.
    Great tour actually!! thanks~

  • @carisfreez
    @carisfreez Pƙed rokem

    Can anyone tell me what is the extension Sonny uses to get the groq queries to look all nice and colorful? Mine just gives me crappy yellow string text and it's bothering the hell out of me (i know petty problems, but still)

  • @Dizzifer9538
    @Dizzifer9538 Pƙed rokem

    next level.......

  • @AjaySingh-jz8qx
    @AjaySingh-jz8qx Pƙed rokem

    bro your videos are awsome please make a video on weather app with forecast like msn weather or something like that😇😇😀😀😀😀

  • @phucvantanvinh6843
    @phucvantanvinh6843 Pƙed 10 měsĂ­ci

    36:18 npm install --save react-twitter-embed

  • @creativesteve
    @creativesteve Pƙed 2 lety

    Sonny could you bring out an addendum for the last 10 minutes of code?

  • @_ramen
    @_ramen Pƙed 2 lety

    0:05 Sonny made twi-uh. It's like twitter, but cooler.

  • @nested9301
    @nested9301 Pƙed rokem

    you can mutate without using that boilerplate
    export async function createPost(post: Post) {
    const result = client.create(post)
    return result
    }
    export async function updateDocumentTitle(_id, title) {
    const result = client.patch(_id).set({title})
    return result
    }
    as montioned on the docs ?

  • @naveenkumargowda6434
    @naveenkumargowda6434 Pƙed rokem

    Hii Sonny
    I am getting
    Type 'Comment[]' is not assignable to type'import().Comment[]' and
    Comment is missing the following properties from type 'Comment':
    in tweet.tsx
    Can you help me how to resolve with it. I did exactly what you did there

  • @JohnWick-kr2kp
    @JohnWick-kr2kp Pƙed měsĂ­cem

    Getserversideprops doesn't work in production in vercel but works fine in development. Help me solve it please.

  • @haoyuchou123
    @haoyuchou123 Pƙed rokem

    Does anyone encounter the problem when trying to add new comments and tweets when deployed, it sometimes respond slowly and doesn't show the newest comments or tweets on screen immediately, but everything works fine one local machine?

  • @Mikkionfire
    @Mikkionfire Pƙed 2 lety

    ClientError: Unable to parse value of "$tweetId=undefined". Please quote string values. Did anybody have the same problem?

  • @sayedfahad6096
    @sayedfahad6096 Pƙed 2 lety

    Can you build with SMS systeam?

  • @BLISTZGAMING
    @BLISTZGAMING Pƙed rokem

    hi i am stucj. something to do with my addTweet api . does not work. would apperiate any help

  • @adityanarayangantayat7133

    Your VS code extensions for the file and folder icons please?

  • @ozodbekjumanov8763
    @ozodbekjumanov8763 Pƙed 2 lety

    Hello bro this is a good tutorial but Twitter tweets embed did not work me

  • @parinsheth4971
    @parinsheth4971 Pƙed rokem

    Is this course for beginners?

  • @mikashlimmer
    @mikashlimmer Pƙed 2 měsĂ­ci

    god bless bro! greetings from russia!

  • @minhajurrohomanrahat880
    @minhajurrohomanrahat880 Pƙed 2 lety

    When will we get the front end with the backend part?

    • @SonnySangha
      @SonnySangha  Pƙed 2 lety

      I’m sorry? The full build is here, check pinned comment too!

    • @minhajurrohomanrahat880
      @minhajurrohomanrahat880 Pƙed 2 lety

      @@SonnySangha I mean you're just giving the frontend part. Why not make a video of the backend? I missed your backend video lecture.

  • @user-bt3hr2ob9q
    @user-bt3hr2ob9q Pƙed rokem

    Greetings from Kazakhstan! Thanks buddy! Please make a pagination on TS, for example, using the example of your instagram clone. I didn't find good information about pagination and dynamic loading of posts. Thank you in advance!

  • @MahmudulHasan-zw5ow
    @MahmudulHasan-zw5ow Pƙed 2 lety

    which music is playing in the background sir😁😁

  • @wesatat
    @wesatat Pƙed 2 lety

    Hey. I am a new subcriber and i have follwoed along with a few of your videos. I am having issues on deployment with vercel. I have made the connections and after i build in vercel, i get an issue saying internal server error 500. I tried updating the env variables but I'm not sure which ones to use as no combination of changing localhost:3000 url to vercel urls work. Sonny please help me understand this as your video ends early. I PROMISE I WILL BUY YOUR COURSE IF YOU CAN HELP ME!

    • @rogeralexander1539
      @rogeralexander1539 Pƙed 2 lety

      You can view your error logs by going to your Vercel dashboard, clicking on your project, and then clicking "View Function Logs". This will show errors happening in realtime. They are not persisted (they're streaming logs). Refresh the page, and you'll see your 500 error. That should tell you what the issue is. I think its a connection issue, check your connections

    • @SonnySangha
      @SonnySangha  Pƙed 2 lety +1

      It’s most likely you forgetting the NEXTAUTH_SECRET or something along those lines! As Roger suggested do check the function logs and you should see the error listed out!
      We got your back (and thanks Roger for being Awesome!)

    • @rogeralexander1539
      @rogeralexander1539 Pƙed 2 lety +1

      @@SonnySangha Of course Sonny, Thank YOU man. Your channel is awesome. You have good vibes, youre funny, and you make coding fun (as it should be).

    • @wesatat
      @wesatat Pƙed 2 lety

      @@SonnySangha thanks for the reply I managed to fix it and then came back to try and tell you that I figured it out. Now my next issue is on vercel when running the app it doesn't refresh comment or tweet. If I update the sanity database and then refresh the page it pulls in the new data I put in the sanity database. However I can't comment to tweet or refresh feed on the whistle Running Up. Thanks sonny you are a legend

    • @SteveBrown2020
      @SteveBrown2020 Pƙed rokem

      @@SonnySangha Amazing course, Sonny! I'm also getting the 500 error deploying to Vercel. All the env variables are setup including the NEXTAUTH ones. The Functions realtime longs say [GET] /api/auth/session Function Status 304 when I do it.

  • @zoomlen
    @zoomlen Pƙed 2 lety

    Server Error
    TypeError: Cannot read property 'fetch' of undefined
    This error happened while generating the page. Any console logs will be displayed in the terminal window.

    • @jpkorstad
      @jpkorstad Pƙed 2 lety

      Did you figure this out? I'm having the same issue currently. Thx!

    • @kaliyaperumaldiwakaran8771
      @kaliyaperumaldiwakaran8771 Pƙed 2 lety

      Found a fix for you can edit the https in the env local file into http remove the s and it works !

    • @kaliyaperumaldiwakaran8771
      @kaliyaperumaldiwakaran8771 Pƙed 2 lety

      @@jpkorstad Found a fix for you can edit the https in the env local file into http remove the s and it works !

  • @manjunathreddy5210
    @manjunathreddy5210 Pƙed 2 lety

    Hello Sonny, can you please do truecaller clone

  • @panomapet9441
    @panomapet9441 Pƙed 2 lety

    when did you start coding sir?

    • @SonnySangha
      @SonnySangha  Pƙed 2 lety

      When I was 17, I’m now 27😄

  • @kushalmondal618
    @kushalmondal618 Pƙed rokem +2

    with 1:42:30, with fetching the tweets, its not showing on the console

    • @albinbinoy1994
      @albinbinoy1994 Pƙed rokem +1

      Did you solved the issue?

    • @kushalmondal618
      @kushalmondal618 Pƙed rokem

      @@albinbinoy1994 Yes, that one was solved, i was checking with the utils hardly, but the issue was typo on GetServerSideProps, but Facing a new issue while deploying it on vercel or netlify it shows 500 internal server error at homepage, locally everythin was fine, i have set the deployed url on sanity CROS origin and also twitter developers , but it didnot solved

    • @kushalmondal618
      @kushalmondal618 Pƙed rokem

      okay, queried pretty fast, solved it, needed to add env variables to the hosting platforms

  • @cartiktechnomechnobro9061

    Music name in the beginning?

  • @shubhamkadu4189
    @shubhamkadu4189 Pƙed rokem

    instead of px and py we can use p

  • @zkcoding1132
    @zkcoding1132 Pƙed rokem

    id u commit it to github?

  • @nicholasbazzoni7084
    @nicholasbazzoni7084 Pƙed 2 lety +1

    having a hard time deploying to vercel. I get an internal 500 server error. even when i replace next_auth_url and next_public_base after successful upload. can anyone help me who has experienced the same? i even looked at the reddit build for reference but to no avail.

    • @wesatat
      @wesatat Pƙed 2 lety +1

      I have the same issue, maybe we can try fix it together?
      i have also updated my env variables. i think thats where the issue is, just not sure which combination of urls to use

    • @nicholasbazzoni7084
      @nicholasbazzoni7084 Pƙed 2 lety

      @@wesatat I fixed this. Once you get that 500 error Take the latest deployment uri and paste it in your twitter oauth 2 along with the callback that’s already provided. Also include the vercel uri beneath the callback by itself.

    • @wesatat
      @wesatat Pƙed 2 lety

      @@nicholasbazzoni7084 thanks i actually figured this out and was coming back to the comments section to explain the fix! now my issue is when running in vercel the refresh fee and add tweet and add comment function dont seem to work

    • @nicholasbazzoni7084
      @nicholasbazzoni7084 Pƙed 2 lety +1

      @@wesatat I’m getting a cors error where I have to refresh to see tweets

    • @wesatat
      @wesatat Pƙed 2 lety

      @@nicholasbazzoni7084 same! If I update the sanity database manually then it does pull through changes but when I click refresh or add comment or add tweet. Then it just constantly refreshes but doesn't seem to get the data. I am really hoping we both can figure this out

  • @mascanho
    @mascanho Pƙed 2 lety

    Did anyone else got a problem wih: error - ClientError: Unable to parse value of "$tweetId=undefined". Please quote string values. ? cheers

    • @SoraFromIndia
      @SoraFromIndia Pƙed 2 lety

      If the tweetId is inside the handleSubmit function or used there then check the video description. If that doesn't work then just know that that variable is either not defined at the right place or not defined at all. If the next piece of code is running before tweetId can get it's value then just use an useEffect hook. I can't be 100% since I haven't yet watched this video yet, so I will update my answer once I watch it from start to finish.

    • @mascanho
      @mascanho Pƙed 2 lety

      @@SoraFromIndia cheers mate. I’ll give it a run once I have the code open and I’ll update you.
      Thanks. 🙏

    • @SidemenAndSomeFriends
      @SidemenAndSomeFriends Pƙed 2 lety

      Anyone find a solution?

    • @Mikkionfire
      @Mikkionfire Pƙed 2 lety

      I have the same error, did you find a solution ?

  • @gonzalo653
    @gonzalo653 Pƙed rokem

    Did anyone figure out how to deploy to Vercel?

  • @aliyyil9035
    @aliyyil9035 Pƙed rokem

    Bro why don't wear protect glasses but u can work 3 or 4 hours without it, How? I can work only an hour

  • @pedroelton7040
    @pedroelton7040 Pƙed 2 lety

    The #PapaFam National Anthem: "Loving Caliber - I Wanna Be With You (Daxten Remix)"

  • @twenyone5034
    @twenyone5034 Pƙed 2 lety +1

    anyone else can't see the "blockTweet" boolean at 1:34 ?

    • @twenyone5034
      @twenyone5034 Pƙed 2 lety

      well nvm guys 😂😂😂 if anyone got confused there just enable & disbale the block tweet again maybe for the first time you'll not see the "bloclTweet" as it was for me

  • @vaniad555
    @vaniad555 Pƙed 2 lety

    Great content, again! I still wonder what was the audio problem, it could happen to all of us 😁

  • @truongbuipv
    @truongbuipv Pƙed 2 lety

    Can you clone dev.to in next video

  • @ProjectPros
    @ProjectPros Pƙed 2 lety

    Make blog

  • @BrokeTheGamer
    @BrokeTheGamer Pƙed rokem +2

    Fantastic video! But, for the love of god, please lower the volume of the music 😂
 I love the music, it’s just growing you out at times.