
Deploying a Lovable.dev Project to GitHub Pages
link to the blog to get free custom .me domain name Free custom domain for your project...
For further actions, you may consider blocking this person and/or reporting abuse
A quick update. I have no clue if Github changed the default pages route now but according to their docs you must name your repo
<username>.github.io
. This will automatically be your base route (so https://.github.io). Therefore, in thevite.config.ts
, the base path must beAdditionally, you need to change the base path destination in the
workflow.yaml
file accordinglymy repo name is
coderatul.github.io
and i set base path to this onlyin workflow :
public_base_path: /coderatul.github.io/
and in vite config file:
base: '/coderatul.github.io/'
and it works maybe you forgot : /repo name/ (the slashesh)
anyway i went through your github and yours seems working with base as
/
so thanks for commenting this people facing issue might get it right with base as/
everything done properly but still getting 404
try this dev.to/poolshark/comment/2nhik
Yes, that fixed the problem bro, problem caused because I didnt change the workflow properly!
thanks again and keep up the good work sharing such projects
thanks for your kind words and appreciating
Your most welcome, have you ever tried a second page or I guess probably need a new github acc for that
most probably yes, we may host multiple pages from a single account
Thank you for your quick reply, I think I tried it before writing here but I will try again later and get back to you
I followed both steps from blog and below comment but still getting blank page. Any other idea? I tried with incognito mode as well but no luck?
please share link to your repo
Thanks for giving you time. Repo : github.com/NajwaniGirish/girish-po...
@girish_singh_2000 i think you didn't followed the steps correctly, the repo you have shared is the same repo generated by lovable and not according to the steps mentioned above
I cloned the lovable repo as it is in my pc and then followed all the steps (The files were copy pasted from the lovable repo) is there anything prior steps that I missed? The repo linked with lovable is different ("de-portfolio" in my Github. let me know the reasons you think it is same then maybe I could try again resolving those.
Your portfolio looks good β¨οΈ Looking forward to custom domain article, would be helpful
a blog has been uploaded reagarding this blog
Thanks for uploading! I read the blog β itβs really informative.
Can you a video tutorial for this
on whihc platform should i upload it any recommendation ?
I had issues with it not working, with page not found, blank page etc. so i deleted it all and gave up lol, but now i realised it might be because my repo was privet and githubpages requires a public repo to display it for free, so if your repo is private set it to public lol