How to configure public url?
See original GitHub issueHi, 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:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top 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 >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
@herrstucki Setting
--public-url
in the build command works, but it is not intuitive. I first followed the docs and addedbasePath
anduseBrowserHistory
to my config.basePath
should be ignored when runningcatalog-start
and only used forcatalog-build
. Either way, it would be helpful if the docs mentioned this.Ok, cool. Sorry for the confusion. I’ll have to check if that can be improved or documented better.