How To Deploy React Application on Netlify with Custom Configuration (Env Variables and Router)

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

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

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

    Thank you for making such a helpful video! I found the solution to my problem. Keep up the great work!

    • @CodeBucks
      @CodeBucks  2 месяца назад +1

      Thanks for your kind words!

  • @draganapopovdev
    @draganapopovdev Год назад +1

    tnx, tnx, tnx a lot!❤

  • @sunbrogilgamesh
    @sunbrogilgamesh Год назад

    i tried to follow this and mostly it works but not for routes. when deploying, i get the message that a _redirects file is present in the repository but is missing in the publish directory "build". i tried copying it in "build" and also in "static" folders but that changed nothing...

    • @CodeBucks
      @CodeBucks  Год назад

      Are you using React JS or any other framework like next or gatsby? Also, Are you doing any manual configuration before deployment? I would recommend you to read about the static routing from netlify documentation.

    • @sunbrogilgamesh
      @sunbrogilgamesh Год назад +1

      @@CodeBucks i'm only using "basic" react js, i'm quite a beginner actually so i tend not to get things complicated :)

    • @CodeBucks
      @CodeBucks  Год назад

      @@sunbrogilgamesh Try with clean code just place redirects file in the main directory and not in the build, and follow all the instructions from the documentation. Still if that doesn't work let me know.

  • @abdousifelhak4486
    @abdousifelhak4486 Год назад

    thanks sir , but can we deploty a fullstack MERN app - that contains frontend and backend directories -to netlify ? if yes , how ?

    • @CodeBucks
      @CodeBucks  Год назад +1

      Hey, No for now you can not host your backend server on netlify. You can use netlify for the JAM stack website but for the MERN stack you can use netlify to host frontend application while you can use heroku or aws to host your backend server.

    • @akshatk1690
      @akshatk1690 Год назад +1

      @@CodeBucks hey , how to host backEnd servers now Can you please help

    • @CodeBucks
      @CodeBucks  Год назад +1

      @@akshatk1690 Hey, can you tell me what are you using for the backend? Node.js? Btw you can use aws cloud and host the backend on EC2.

  • @rekahorvath3759
    @rekahorvath3759 Год назад

    Why from Github? Uhh... I can't find a tutorial without Github 🙄

    • @CodeBucks
      @CodeBucks  Год назад +1

      Hey, github is widely adopted and it is used by almost all the developers. Still you can host without github I guess. You can read more from the docs as well: docs.netlify.com/get-started. Still if you need any help let me know.

    • @rekahorvath3759
      @rekahorvath3759 Год назад +1

      @@CodeBucks Thank you