Vite React to GitHub Pages: Fix Empty Page & Missing Assets

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • Having trouble deploying your awesome Vite React app with React Router to GitHub Pages? Facing a frustrating blank screen or 404 not found errors for your assets?
    This *frontend deployment tutorial* tackles those common issues and provides clear solutions to ensure a smooth transition from your local development environment to GitHub Pages.
    *By the end of this 4-minute video, you'll be able to:*
    - Fix empty pages caused by React Router's base URL assumptions.
    - Resolve missing asset references (images, fonts, etc.).
    - Confidently deploy your Vite React app to GitHub Pages (gh-pages).
    Subscribe for more videos like this: / @vladyslavdihtiarenko
    Let's connect:
    Website: www.vd-develop...
    Blog: www.vd-develop...
    Instagram: / vladislavdegtyarenko
    Telegram: t.me/@Vladislav_Degtyarenko
    #frontend #javascript #vite #react #router #deploy #ghpages #github #notfound #blank #empty #missing #assets

ความคิดเห็น • 18

  • @VladyslavDihtiarenko
    @VladyslavDihtiarenko  3 หลายเดือนก่อน +3

    Welcome! I just started my channel and this is the first time I make TH-cam tutorials. If you find this video helpful, consider hitting the like button and subscribe to my channel. This will help me to stay motivated in the long run. Btw, I'd be more than happy if you share your suggestions and tips on how I can make my tutorials better. Thanks a lot!

    • @mahmoudsamir1351
      @mahmoudsamir1351 2 หลายเดือนก่อน

      can you please do it for tanstack router

    • @GifariFajarm
      @GifariFajarm 19 วันที่ผ่านมา

      How to solve the problem, when you want to move the page using a url that is written manually it cannot while if you move through the navigation menu it can

  • @abrahamouattara8757
    @abrahamouattara8757 2 หลายเดือนก่อน +2

    the problem is that when I refresh or when I type the url of the path of my pages by hand I get 404 error

  • @toluwanimiadeyemo8099
    @toluwanimiadeyemo8099 หลายเดือนก่อน +1

    Thank you. Your video was of great help

  • @rohankoli3695
    @rohankoli3695 2 วันที่ผ่านมา

    very helpful

  • @CarLos-wd9xc
    @CarLos-wd9xc หลายเดือนก่อน

    thank you so much, been stuck on this problem for an hour!!

  • @gauravyadav2134
    @gauravyadav2134 หลายเดือนก่อน

    How to fix for vite react typescript project?

  • @marinamars9786
    @marinamars9786 3 หลายเดือนก่อน

    дякую 😍

  • @boima1229
    @boima1229 18 วันที่ผ่านมา

    thank you. the video helped me, been stuck around 3 hours

  • @kwaku1058
    @kwaku1058 2 หลายเดือนก่อน

    is it possible to deploy to GitHub pages with a local database like JSON-server and have it work?

    • @VladyslavDihtiarenko
      @VladyslavDihtiarenko  2 หลายเดือนก่อน +1

      No, you cannot directly deploy a JSON-server backend with your Vite React app to GitHub Pages. GitHub Pages is for static site generation, so if you're data is mostly static, you can prerender static files with your data. Otherwise, you need a separate backend.

    • @kwaku1058
      @kwaku1058 2 หลายเดือนก่อน

      @@VladyslavDihtiarenko ok got it, thanks for the reply