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.

How to configure public url?

See original GitHub issue

Hi, i have an issue publishing the build folder content under a gh-page.

My gh-page is set to serve all files from the root of the master branch. My gh-page url is:

https://contactlab.github.io/repo-name/

I have an issue with the static js files because they have a path starting with /static/... and i need to make them start with /repo-name/static since using /static return 404. Setting the basePath does not change the generated paths. Any suggestion?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
maiertechcommented, Apr 11, 2018

@herrstucki Setting --public-url in the build command works, but it is not intuitive. I first followed the docs and added basePath and useBrowserHistory to my config. basePath should be ignored when running catalog-start and only used for catalog-build. Either way, it would be helpful if the docs mentioned this.

2reactions
jerstuckicommented, Dec 21, 2017

Ok, cool. Sorry for the confusion. I’ll have to check if that can be improved or documented better.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure the create-react-app public URL post-build with ...
For a project, I had the requirement of making the public URL of the application configurable via an environment variable that can be...
Read more >
Can't build create-react-app project with custom PUBLIC_URL
In this file write this(no quotes around the url): PUBLIC_URL=https://dsomething.cloudfront.net. Build your project as usual ( npm run build )
Read more >
The Public URL - Help for SourceLair
Open your project details and scroll down to the Public URL section to view the Public URL of your project. Click on the...
Read more >
Configure a URL (Report Server Configuration Manager)
Start the Reporting Services Configuration tool and connect to a local report server instance. · Click Web Service URL. · Specify the virtual ......
Read more >
A Method for Creating Public URLs for Your Localhost Web ...
In this video I show you how to use ngrok.io to create public urls for your web apps running on localhost.Need one-on-one help...
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