"homepage" setting in package.json doesn't work if it's set to https
See original GitHub issueDescription
If I set homepage to:
"homepage": "https://twe4ked.github.io/api-docs/"
The asset links point to /
.
If it set it to:
"homepage": "http://twe4ked.github.io/api-docs/"
I get the expected behaviour, the asset links point to /api-docs/
.
Very similar to this (closed) existing issue: https://github.com/facebookincubator/create-react-app/issues/478
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):
api-docs@0.1.0 /Users/odin/Dev/twe4ked/api-docs
└── react-scripts@0.8.4
node -v
:
v5.2.0
npm -v
:
3.10.8
Then, specify:
- Operating system:
MacOS 10.12
- Browser and version:
N/A
Reproducible Demo
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Setting homepage in package.json doesn't set PUBLIC_URL ...
The project was built assuming it is hosted at https://example.com. You can control this with the homepage field in your package.json.
Read more >Setting homepage in package.json doesn't set PUBLIC_URL ...
I have tested this using a production .env.production environment variable file so I do not know if assigning PUBLIC_URL in a generic .env...
Read more >Common errors | npm Docs
Invalid JSON · Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This...
Read more >package.json - Yarn
Essentials. The two most important fields in your package.json are name and version , without them your package won't be able to install....
Read more >Common Configuration - electron-builder
in the package.json file of your project using the build key on the top level: ... If you want to use js file,...
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
Interesting. Let us know if you have it again.
I just tried making a sample app and I can’t reproduce it again. Perhaps it was something specific to my setup at the time. Thanks for the help.