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.

"homepage" setting in package.json doesn't work if it's set to https

See original GitHub issue

Description

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:

  1. 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
  1. node -v:
v5.2.0
  1. npm -v:
3.10.8

Then, specify:

  1. Operating system:

MacOS 10.12

  1. Browser and version:

N/A

Reproducible Demo

https://github.com/twe4ked/api-docs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Jan 10, 2017

Interesting. Let us know if you have it again.

0reactions
twe4kedcommented, Jan 10, 2017

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.

Read more comments on GitHub >

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

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