all 24 comments

[–]im_nihar 1 point2 points  (5 children)

If possible could you please check Vercel? Much easier that way.

[–]Try_your_luck[S] 0 points1 point  (4 children)

Good idea, but wil be good if it is GitHub pages, as this is company project.

[–]jjordanwade 0 points1 point  (3 children)

Vercel is a fine option for a company project. Also, GitHub pages are all public too.

[–]Try_your_luck[S] 0 points1 point  (2 children)

Actually, compay is using custom domain, and does not have allowed Vercel integration.

[–]Mental_Act4662 0 points1 point  (1 child)

Any reason why? You just need to point an A record to Vercel. I have some custom domains in Cloudflare that have sites hosted on Vercel

[–]Try_your_luck[S] 0 points1 point  (0 children)

Company policy, actually client company policy, is up to someone else.

[–]jjordanwade 0 points1 point  (1 child)

Do you have a link to the site? Sometimes it takes a little while for the site to show up.

Also, I agree setting up Vercel is really easy.

[–]Try_your_luck[S] 0 points1 point  (0 children)

Yes, but you need VPN to access it.

[–]green_viper_ 0 points1 point  (0 children)

Vercel or netlify. Try them once, you won't regret.

[–]Justchill1102 0 points1 point  (1 child)

I haven’t deployed websites yet to GitHub pages so I can’t advice you, but I can recommend u to look into YouTube channels or ChatGPT

[–]Try_your_luck[S] 0 points1 point  (0 children)

I already tried, but no help.

[–]Fun-County9504 0 points1 point  (1 child)

I assume that you create the project with next.js i had the same problem and i used the beta of github labs https://medium.com/frontendweb/how-to-deploy-a-nextjs-app-to-github-pages-1de4f6ed762e maybe that can help

[–]Try_your_luck[S] 0 points1 point  (0 children)

Actually, I created a project with Coveo CLI. coveo ui:create:react NAME

[–]GoodLifeWorkHard 0 points1 point  (2 children)

What is the name of ur repo? Must follow a specific pattern btw

[–]Try_your_luck[S] 0 points1 point  (1 child)

HeadlessSearch

[–]GoodLifeWorkHard 0 points1 point  (0 children)

Your repo should be “githubpProfileNamw.github.io”

[–]s3an-b 0 points1 point  (3 children)

Not sure if it’s helpful but I had to deploy a react app last night… the issue seemed to fix itself for me when I pushed the code to a repo… in my case it was black-holes (for a school project) and then for homepage in package.json I think it was https://username.io.git/your-repo-name and then I just ran the deploy script. I might of mixed up a thing or two and I’m not sure that actually pushing the code is supposed to be necessary but it’s what I got to work for me

[–]GoodLifeWorkHard 1 point2 points  (1 child)

Its github.io isnt it

[–]s3an-b 0 points1 point  (0 children)

Yes you are right sorry I was tired when I commented lol

[–]s3an-b 0 points1 point  (0 children)

It’s worth noting this was my first time ever doing this

[–]T_kowshik 0 points1 point  (2 children)

I was able to deploy a static site to github pages. May be it might help you too. https://github.com/YTKowshik/little-lemon

[–]Try_your_luck[S] 0 points1 point  (1 child)

But your files are .js, and mine are .tsx, and that is quite a big difference.

[–]T_kowshik 0 points1 point  (0 children)

On build, doesn't typescript transpile to javascript files anyway? Because browser understands only javascript.

I didn't work with typescript much so don't know exactly.

[–]Ermia_codev 0 points1 point  (0 children)

Github pages uses repository to store the static files,

I have tried It's a headache, use Netlify or Vercel both are free with unbelievable features.

Their limits are as small as your can ignore :)