Deploy to gh-pages
See original GitHub issueIs there a way to make it work with gh-pages branch.
problem is that links in generated index.html
are relative from a domain (starts with /
)
<link as="script" rel="preload" href="/commons-cb11f4ecc482359b7fd0.js"/>
And gh-pages
branch served form https://<username>.github.io/<project-name>/
which will resolve to https://username.github.io/commons-cb11f4ecc482359b7fd0.js
and won’t work.
Path prefix form gatsby settings should solve the problem https://www.gatsbyjs.org/docs/path-prefix/
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Deploying to GitHub Pages - Codecademy
Deploying to GitHub Pages is automatic. Once it's set up, deploying happens whenever you push your local changes to your remote, GitHub-hosted repository....
Read more >Configuring a publishing source for your GitHub Pages site
Under "Build and deployment", under "Branch", use the None or Branch drop-down menu and select a publishing source. Drop-down menu to select a...
Read more >How to Deploy React App to GitHub Pages - C# Corner
1) Add GitHub Pages dependency package. Install "gh-pages" package using the below command. · 2) Add homepage property to package. · 3) Add...
Read more >Deploying React apps to GitHub Pages - LogRocket Blog
To deploy your React application to GitHub Pages, follow these steps: Set up your React application; Create a GitHub repository for your project ......
Read more >How to deploy React App to GitHub Pages
1- First create a repository named my-app using create-react-app . · 2- We need to install GitHub Pages package as a dev-dependency. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@isBatak I came up with a gh setup starter here https://github.com/pengx17/slides, you can fork it and try yourself.
@jxnblk I think we could add a new template using my boilerplate to
create-deck
cli besides the basic one for advanced users.I was able to deploy my slide-deck to github pages as well! Which is published here https://fullstackzach.com/git-talk/
here’s a reference to my working repo. https://github.com/fullstackzach/git-talk
I thought I’d share as another setup reference. Thanks to @pengx17 for the example!