react-firebase-starter icon indicating copy to clipboard operation
react-firebase-starter copied to clipboard

Override project URL using relative path

Open bravocado opened this issue 8 years ago • 3 comments

Right now, RSB assuming my app is served at the server root. It's hard to override it.


Current: we can access it via http://domain.com/ as a root. But we can't make the another project inside using sub-folder.

Future: we can access it via http://domain.com/sub-folder/ as a root


For your reference:

create-react-app have an ability to change it via package.json -- link


If you have a solution about this, maybe you should update the doc. Thanks for creating this wonderful project!

bravocado avatar Nov 01 '16 15:11 bravocado

HTML <base> Tag?

frenzzy avatar Nov 01 '16 19:11 frenzzy

@frenzzy, I think there will be another issues regarding <base> tag:

  1. Anchor with ID as a target will not work. There's need another workaround. Probably will causing another issue.
  2. It will not override the publicPath: '/dist/' in webpack.config.js
  3. Assuming we're changing the publicPath, it will causing another issue regarding the router.

bravocado avatar Nov 02 '16 05:11 bravocado

Hi, any movement on this? Wondering if it could also be a webpack issue?

vsayer avatar Apr 07 '17 04:04 vsayer