Thanks a Lot! But Still facing same Black page on deployed Page!
@nischalmaharjan1695 күн бұрын
This actually works. Thanks man
@aryansinha181811 күн бұрын
Kindly pin this comment For all those for whom this is not working, make sure to do this 1. Keep the repo name and vite project name same. 2. Make sure it is .github and the folder structure is accurate. **** Most important, Check for branch name, github branch name is master instead main so change it to master in two places, the top where it is given master and under deploy change the if statement to master, if: github.ref == 'refs/heads/master' Copy paste the below code if you don't want to change on your own, name: Deploy on: push: branches: - master jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Checkout repo uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 - name: Install dependencies uses: bahmutov/npm-install@v1 - name: Build project run: npm run build - name: Upload production-ready build files uses: actions/upload-artifact@v3 with: name: production-files path: ./dist deploy: name: Deploy needs: build runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' steps: - name: Download artifact uses: actions/download-artifact@v3 with: name: production-files path: ./dist - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist
@eniolaaderounmu14 күн бұрын
Bro, this is the best - the best - the best- the best - the best - the best (and I typed it all) TUTORIAL ON DEPLOYING REACT APPS TO GITHUB PAGES.
@bloobiesuwu16 күн бұрын
Ahhhh, this was so easy and worked fine!! thx :3
@pranadityasudana751418 күн бұрын
i got an error Action failed with "The process '/usr/bin/git' failed with exit code 128" when i follow the tutorial minute 2:15 please help
@pranadityasudana751418 күн бұрын
nvm i'm dumb
@nikolaykozenko716119 күн бұрын
Thank you brother! I am from Ukraine now live in Russia, couldn't do it, but you video is the best and your brief explanation is excelent! Keep on make such excellent videos!
@VladyslavDihtiarenko19 күн бұрын
Приветствую! Я тоже из Украины, сейчас в Киеве. Спасибо за просмотр и комментарий. Приятно, что видео было полезным!
@nikolaykozenko716118 күн бұрын
@@VladyslavDihtiarenko Ого! Круто!! Неожиданно!! Я почему-то думал что Ирландия или даже Мексика😁. Буду ждать новых видео! А то на канале уже давно не было новенького, особенно интересно было посмотреть про Реакт 19 и Next.js 15, а то изменения, а инфы мало... Файно! Доброго дня, бажаю успіхів🥰🥰🥰
@lutpulla718321 күн бұрын
Thank you so much, your video was of great help!
@VladyslavDihtiarenko19 күн бұрын
Thanks, appreciate it
@chillsideАй бұрын
thanks!
@phenix4668Ай бұрын
I build a reat vite project but when i deployed it i am getting resoures not found i tried your methods but still showing same error and not a single image is rendering
@Iamhere-em2usАй бұрын
Good man, thankss
@VoloInTechАй бұрын
Great video!
@franki8469Ай бұрын
What about custom loader? How to write it? Am i missing something?
@Gruby7C1hАй бұрын
If you try this on your own project and it doesn't work (nothing is visible in Actions): check if your branch is named master instead of main. The workflow checks for refs/heads/main
@AbdalrhmnAbdelmaainАй бұрын
Really thank you very much the first one to be honest in your explanation thank you🥰
@dreamer4515Ай бұрын
Finally 😭😭, took me 5 hours until I found your video. Earned a sub man!
@JohnBrianPrado-v6tАй бұрын
what if my assets are in the public/assets/folder/folder/etc..? and I have folders inside my assets with images inside
@VladyslavDihtiarenkoАй бұрын
You can set path for your images: www.npmjs.com/package/next-image-export-optimizer#configuration
@marcschiavone9549Ай бұрын
The only useOnClickOutside with typescript working out there. Thx mate and well done! I needed this!
@masaorel6530Ай бұрын
Thank you very much, setting the base solved the issue! :)
@AdamZlatohlavek2 ай бұрын
Is there any way to show label Read more only, if there is content with 3+ lines? If I have content with just 2 lines, I want to hide expanding behaviour.
@paulocavalcanti38082 ай бұрын
If I choose gh-pages as the Branch, I can execute the app, but cannot access the doc. On the other hand, if I choose main as the Branch, I can see the doc, but cannot execute the app.
@mohamedaminedammak23192 ай бұрын
thank you that was very helpful
@YowLongLee2 ай бұрын
Thank you very much, your video is very clear. I especially like you've explained their config options. I think this is probably the best workaround to apply image optimization on Next.js static sites.
@hikaru_e2 ай бұрын
This is one of the most concise tutorials I’ve ever seen. Thank you for valuing our time!
@lucaseverest53692 ай бұрын
You saved my life! I'v been working on this problem for hours! You won a subscriber forever!
@Halid-pl1to2 ай бұрын
you amazing bro
@VladyslavDihtiarenko2 ай бұрын
Thanks 😎
@broook-san2 ай бұрын
Hey I followed your tutorial and deployed the app successfully. But I got an error. So I made some changes to my code and when I am trying to push the code to github with the general “git push -u origin main” command, it shows a message “everything is up-to-date” but the repository isn’t really updated on github. Can you help me about it?
@cz66092 ай бұрын
Absolute lifesaver. Thank you!
@VladyslavDihtiarenko2 ай бұрын
you're welcome!
@Plantarc2 ай бұрын
Very helpful tutorial, thank you so much
@VladyslavDihtiarenko2 ай бұрын
I'm glad you found the tutorial helpful! Let me know if you have any questions or need further assistance.
@App_Alchemy3182 ай бұрын
Hello! I love your VsCode Color theme. Can you share it please!
@VladyslavDihtiarenko2 ай бұрын
Community Material Theme High Contrast: marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-community-material-theme
@BLINKBOXHD2 ай бұрын
I don't see gh-pages as an option under branch
@abdullahawan62352 ай бұрын
sir please provide the source code of it. I will be very thankful to you.
thank alot bro ❤🔥❤🔥 you gained 1 more subscriber
@VladyslavDihtiarenko2 ай бұрын
I really appreciate your support! Thank you for joining the community!
@ChideraAbaraonye2 ай бұрын
Thanks a lot. I deployed my first React app, thanks to this video.
@sarveshkulkarni62872 ай бұрын
faltu bakwas video hai ,time waste ,sala actions me kuch nai ata
@yannanicolas37002 ай бұрын
I did all the steps but then when i go to Actions, there is no failed deployment that i can re-run, please help me. Ty!
@David_Tsimbal_ru2 ай бұрын
Same problem
@IKILLVEGETABLES2 ай бұрын
I had the same issue, found that my folder was not in root
@VladyslavDihtiarenko2 ай бұрын
Try to switch to GitHub Actions, save and switch back to Deploy from a branch
@aljopaulk11122 ай бұрын
@@VladyslavDihtiarenko same for me as well. still cant see failed one. showing various options under Get started with GitHub Actions Build, test, and deploy your code. Make code reviews, branch management, and issue triaging work the way you want. Select a workflow to get started. Skip this and set up a workflow yourself
@muhammedyaseen14043 ай бұрын
Thanks man, i spent a so much time figuring it out
@VladyslavDihtiarenko2 ай бұрын
Appreciate it a lot!
@am_horrorfinder3 ай бұрын
guys, this guy is absolute straight to point guy. I wondered this is new channel owner. thanks man. love from INDIA.
@VladyslavDihtiarenko2 ай бұрын
I'm so grateful for your encouragement! It means a lot to me as a new channel owner. Love back to India!
@rohankoli36953 ай бұрын
very helpful
@b__yag3 ай бұрын
mine is error : Build ENOENT: no such file or directory, open '/home/runner/work/tictactoe-game/tictactoe-game/package-lock.json' im already re run but display error message like above text
@scorpion111333 ай бұрын
Cool tip👍
@VladyslavDihtiarenko3 ай бұрын
@@scorpion11133 🔥
@scorpion111333 ай бұрын
🔥🔥🔥
@scorpion111333 ай бұрын
Great tip. Thank you. Also use this approach 👍
@VladyslavDihtiarenko3 ай бұрын
@@scorpion11133 👍
@dmitry94633 ай бұрын
How to make it automatically redeploy after pushing new changes to the repo? Because I've added some changes, pushed them to the repo, but nothing has changed on the page by public link.
@VladyslavDihtiarenko3 ай бұрын
Did you push to the main branch?
@dmitry94633 ай бұрын
@@VladyslavDihtiarenko Yes, I pushed to the main branch
@amansemwal95143 ай бұрын
hey im not getting the gh-pages option, ive tried multiple times. its showing deployed, but only a blank screen shows up
@haitamjebari9226Ай бұрын
mee too
@BadGirl-pn3qu3 ай бұрын
Is it possible to do the same but without JS?
@VladyslavDihtiarenko3 ай бұрын
@@BadGirl-pn3qu I got you covered, check it out: kzbin.info/www/bejne/g6upk4Nve8d5ocksi=v4zHc6yktmkY9tYe
@BadGirl-pn3qu3 ай бұрын
@@VladyslavDihtiarenko Thank you! ❤
@isuskrist74163 ай бұрын
Nice video. What VSCode theme are you using?
@Victusu3 ай бұрын
I'm interested in that too
@VladyslavDihtiarenko3 ай бұрын
@@isuskrist7416 Community Material Theme High Contrast: marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-community-material-theme