question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy to gh-pages

See original GitHub issue

Is 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
pengx17commented, Nov 19, 2019

@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.

3reactions
fullstackzachcommented, Mar 5, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found