How To Deploy React App FREE [on Netlify]

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 66

  • @fashionfoodlifestyle8381
    @fashionfoodlifestyle8381 6 месяцев назад +3

    Hey thanks.. this my first project deployment .. and did it successfully with your video..

    • @CodeBlessYou
      @CodeBlessYou  6 месяцев назад

      Great. Keep it up❤❤❤

  • @Karanrathod247
    @Karanrathod247 6 месяцев назад +6

    Thanks man yaar, only your method works on RUclips others are just waste.

  • @yaswanthgummadi7318
    @yaswanthgummadi7318 4 месяца назад +1

    Great video bro, it's working very faster, very efficient and very effective. Thank you so much

  • @STEMPEdu
    @STEMPEdu Месяц назад

    Nice and clean, thank you so much!

  • @AILife-l2x
    @AILife-l2x Месяц назад

    Give you 5 out of 5 star man, such a great!! video🧡🧡

  • @SelfLiftup
    @SelfLiftup 2 месяца назад

    Awesome it really works thank u

  • @shivamraj1784
    @shivamraj1784 4 месяца назад

    🔥 much appreciated

  • @aaquibdeniz
    @aaquibdeniz Месяц назад

    Hey thanks u solve my problem

  • @PankajKumarMaurya_
    @PankajKumarMaurya_ 8 месяцев назад +1

    Thank You ❤

  • @KollywoodPulse
    @KollywoodPulse 8 месяцев назад

    2:35 You already said this only. Then what is the purpose of showing the same sentence with annoying music.

  • @nishantmoolya
    @nishantmoolya 8 месяцев назад

    You would have also showed how to deploy using git because deploying manually becomes hectic and we want whenever there is change in codebase it should be continuously deployed automatically.
    I am able to do it using git but there is configuration issues so...

    • @CodeBlessYou
      @CodeBlessYou  8 месяцев назад

      I will make tutorial on that also

  • @Gravityboy007
    @Gravityboy007 Месяц назад +1

    Deployed but after loading 1 second not show anything.. Why..??

    • @CodeBlessYou
      @CodeBlessYou  Месяц назад

      You don't get anything after deployed?

  • @Cocchamhoc
    @Cocchamhoc Месяц назад

    Can u help me ? i deploy my project is ok but just login with google is error when redirect to home "Page Not Found
    Looks like you've followed a broken link or entered a URL that doesn't exist on this site."

    • @CodeBlessYou
      @CodeBlessYou  Месяц назад

      If your project is working on the home page and you get page not found for other page, then the issue may be in the application not in deployment.
      Try to check that and correct me if i understood different.

  • @7.waseem
    @7.waseem 3 месяца назад

    Thanks man

  • @TehminaKhann
    @TehminaKhann 6 месяцев назад +1

    Thank you yr ❤

  • @livelivelive2548
    @livelivelive2548 4 месяца назад

    Thanks so much - I spend almost a full day watching other videos and none of them worked for me - but yours did and it is so easy. The only thing is that my image is not showing up ( I tried putting it in the images folder, then the public folder and finally the dist folder - but it is not showing up - yet it DOES show up on my localhost:5173 browser and same with my favicon - works on my localhost:5173 browser but not on my deployed project when I open it in netlify - any ideas what I am doing wrong?

    • @CodeBlessYou
      @CodeBlessYou  4 месяца назад

      Maybe you can check the path of your images, if they are showing or not.

    • @livelivelive2548
      @livelivelive2548 4 месяца назад

      @@CodeBlessYou Thanks - yes I have it right now - thanks so much for being so generous with your time

    • @CodeBlessYou
      @CodeBlessYou  4 месяца назад

      @@livelivelive2548 Thanks for watching😀❤❤

  • @A3COriginals
    @A3COriginals 5 часов назад

    thanks sirr.....

  • @duonginhquy6131
    @duonginhquy6131 3 месяца назад

    Thanks very much, sir

  • @PriyanshuGupta-m6m
    @PriyanshuGupta-m6m Месяц назад

    Deploy successfully and run successful but why any images was not showing

    • @CodeBlessYou
      @CodeBlessYou  Месяц назад

      Copy your image URL and paste it in the browser new tab and check it is working or not

  • @ClipsArena04
    @ClipsArena04 Месяц назад

    Thanks bro

  • @mka70701
    @mka70701 3 месяца назад

    After deploy we get blank white page please helpme
    My project on localhost it's work fine but in deployment it's shows blank page

    • @CodeBlessYou
      @CodeBlessYou  3 месяца назад

      May be you are getting some error. Check in console.

  • @malikisdon
    @malikisdon 5 месяцев назад +1

    I don't have dist folder. Instead I've build folder

    • @CodeBlessYou
      @CodeBlessYou  5 месяцев назад +1

      Upload that build folder :)

  • @MobileShortTricks
    @MobileShortTricks 5 месяцев назад

    Why i t no Work on Routers (use in app)

  • @vuthysay
    @vuthysay 25 дней назад

    when I deploy React app with Netlify but useparams is not working, Could you help show this error?

    • @CodeBlessYou
      @CodeBlessYou  25 дней назад

      The issue of useParams not working when deploying a React app on Netlify often stems from how the React Router and Netlify handle routes. React is a single-page application (SPA), meaning routing is handled client-side, but Netlify (or other static hosting services) doesn't inherently understand client-side routing. It tries to serve the paths directly from the server, which results in a 404 error for any routes other than the root (e.g., /).
      Here’s how to fix it step by step:
      1. Create a _redirects File
      Netlify uses a _redirects file to define custom redirect rules. You need to redirect all routes to your index.html, so React Router can handle them.
      Steps:
      Create a file named _redirects in your public folder.
      Add the following line to it:
      /* /index.html 200
      This tells Netlify to serve index.html for all routes, ensuring that React Router takes over routing.
      Deploy your app again, and your routes should work now.
      2. Use netlify.toml (Alternative to _redirects)
      If you prefer or already use netlify.toml for your configuration, add this to the file:
      [[redirects]]
      from = "/*"
      to = "/index.html"
      status = 200
      This achieves the same effect as the _redirects file.
      3. Debugging Tips
      Ensure React Router Setup: Make sure you are using React Router properly and that useParams is implemented in a route component. For example:
      import { BrowserRouter as Router, Route, Switch, useParams } from "react-router-dom";
      function App() {
      return (



      );
      }
      function UserPage() {
      const { id } = useParams();
      return User ID: {id};
      }
      Check the useParams Hook Usage: Verify you are calling useParams within a component rendered by Route.
      4. Verify Deployment Settings
      When deploying to Netlify, ensure that:
      You are selecting the correct build folder (e.g., build for Create React App).
      Your app builds successfully without any errors.
      5. Test Locally
      Run your project locally in production mode to ensure it works before deploying:
      npm run build
      npx serve -s build
      Visit the routes locally (e.g., /user/123) to confirm that routing is functioning correctly.
      By following these steps, your deployed React app on Netlify should handle routes properly, and the useParams hook will work as expected.

    • @vuthysay
      @vuthysay 25 дней назад

      @@CodeBlessYou Thank you for your help

    • @CodeBlessYou
      @CodeBlessYou  24 дня назад

      @@vuthysay ❤❤❤

  • @whysoserious1054
    @whysoserious1054 5 месяцев назад

    How does your display look so sharp??

    • @CodeBlessYou
      @CodeBlessYou  5 месяцев назад

      I think because of recording :)

  • @Roxxxxyyyy
    @Roxxxxyyyy 7 месяцев назад

    can you make github series please

    • @CodeBlessYou
      @CodeBlessYou  7 месяцев назад

      Currently I am working on Git course. You can register for FREE - forms.gle/2c7BkHaFXgitfpwE6

  • @fuzulieliyev2810
    @fuzulieliyev2810 5 месяцев назад +1

    server side don't work

    • @CodeBlessYou
      @CodeBlessYou  5 месяцев назад +1

      for netlify?

    • @fuzulieliyev2810
      @fuzulieliyev2810 4 месяца назад

      ​@@CodeBlessYouyes

    • @fuzulieliyev2810
      @fuzulieliyev2810 4 месяца назад

      ​@@CodeBlessYouIn my project, it is on the server side, the client side is working, but the server side is not

    • @CodeBlessYou
      @CodeBlessYou  4 месяца назад

      @@fuzulieliyev2810 You have to deploy server separately

  • @ohitskobe
    @ohitskobe 6 месяцев назад

    Is there a maximum size limit for megabytes for that?

    • @CodeBlessYou
      @CodeBlessYou  6 месяцев назад

      I think Yes. There is limit but I am not sure.

  • @Srimanjunath-v9w
    @Srimanjunath-v9w 5 месяцев назад

    After deploying it showing an empty white page. Please help me.

    • @CodeBlessYou
      @CodeBlessYou  5 месяцев назад

      Did you check the status of your deployed site?

  • @franklyndejesusmejia5907
    @franklyndejesusmejia5907 3 дня назад

    [[redirects]]
    from="/*"
    to="/index.html"
    status=200