How to Deploy Your Vite App to Github Pages

preview_player
Показать описание
Deploying a Vue 3 Vite app is nothing to be afraid of. In this video, I'll walk you through the exact steps to deploy your vue 3 app to Github Pages.

Github Pages lets you serve static files straight from a repository, making it an extremely quick and simple way to publish content online.

The main steps are working with your Vite configuration and setting the base path to connect with your Github Pages URL, building your app, and setting up a special gh-pages branch on your repo for Github Pages.

What do you want to see next on LearnVue? Leave a comment to help decide future videos on this channel!

LINK TO THE CODE

FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS

follow me on twitter:

INTRO
Daily (Prod. by Lukrembo)
Рекомендации по теме
Комментарии
Автор

To recommit new changes and push up to the remote repository:

1. On remote repository delete the "gh-pages" branch.

2. In you local repository run this command: npm run build (1:56)

3. git add dist -f (2:05)

4. git commit -m [your commit message here] (2:17)

5. git subtree push --prefix dist origin gh-pages (2:20)

if anyone has a quicker process please feel free to update this! but I found this the fastest way to push up to gh-pages.

kevincarter
Автор

Wow, this is probably one of the best tutorials I have ever watched on youtube. 10/10. Literally 100% to the point, easy, coherent, adheres to best practices and explains everything. I don't usually comment on videos, but this tutorial really impressed me.

sebastianteaca
Автор

Finally someone who explains the meaning behind the steps! Managed to get my Threejs project deployed finally, thank you! :D

jordan_w
Автор

1 like is not enough for this....
spent 1 hour googling, then came here and did it in 2 mins
hats off my good man

vuchke
Автор

I'm not even using Vue in my Vite project but after an entire day of trying to get my pages site to work this was what finally did it. simple, clear explanation that doesn't omit necessary details but also doesn't waste time. you're a hero dude.

ksmith
Автор

After almost 3 years also, your tutorial is working perfectly and awesome. Thankyou.

keakash
Автор

That's one of the best tutorials I've ever watched. I didn't expect to get everything I need in just 4 minutes!

LLsul
Автор

Man, you are a legend! I struggled to deploy my page on GitHub for two days, following numerous tutorials and forums, but only this method worked for me. Thank you !

molnarcsaba
Автор

DUDE YOU ARE A GOD, i absolutely hate how confusing it is to update vite codes. thank you

aakash
Автор

You saved me after hours of trying to upload my project to github! Thank you!

qbxhtdy
Автор

Thanks a lot, After numerous failed attempts, this video helped me to deploy my applications .

YogeshYadav-sjyu
Автор

Thank you very much !!! Finally I can deploy on GitHub pages after 2 days trying to solve this issue 😭😭

naqieuddinazman
Автор

3 minutes ONLY enough to deploy the app, thank you!

dennyfedyna
Автор

Tried everthing yesterday night but nothing worked thankyou so muchh for this❤️❤️

rithikguleria
Автор

Super quick and to the point. Love it! Got it working right away, thanks a bunch

mlucas
Автор

maaan you saved me, after hours of trying to upload my project, i was looking exactly this, thanks!

AgustinNazer
Автор

The first tutorial that accually worked for me. Thanks a lot :)

weler
Автор

I will live 2 hours longer







thanks to this chanell

muratkarakaya
Автор

I have a multi-page static website setup, but when i host it on GH Pages, the only page that actually gets pre-pended '/repo-name/' is index.html, when i click a link to another page, i get a 404 error because the links do not incluse the repository name on the path.

How do i fix this?

kadircanyazc
Автор

Thank you It's my first time to use router and deploy to github, thank you I love you

Lily-umpl