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.

siteRoot with path

See original GitHub issue

It seems react-static doesn’t work for websites served from a path that is not /.

To reproduce:

  1. Define siteRoot:
// static.config.js
export default {
  siteRoot: 'http://localhost:5000/dist'
}
  1. Run this:
npm run build && npx serve
  1. Open http://localhost:5000/dist/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
tannerlinsleycommented, Feb 5, 2018

This should be fixed in the latest version. All prefixing now uses the final webpack publicPath 😃

4reactions
bpierrecommented, Jan 4, 2018

.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the web root folder and site root folder? - Help Center
The Web Root Directory is the path of the location of your Site Root folder. You can find this information is the Server...
Read more >
Auto detect site root path on UA site and production site with php
I am currently using a stupid way to get the site root: in the file /includes/layout.php: <?php $siteroot = '/abc'; ...
Read more >
siteRoot with path · Issue #204 · react-static/react ... - GitHub
It seems react-static doesn't work for websites served from a path that is not /. To reproduce: Define siteRoot: // static.config.js export ...
Read more >
About linking and navigation - Adobe Support
Learn about linking and navigation in Dreamweaver and absolute, document-relative, and site root-relative paths.
Read more >
How to change site's root path from Control Panel
How to change site's root path from Control Panel · 1. log in to your Control Panel, navigation Websites page · 2. click...
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