MyBitFoundation / MyBit-Go.app

🔷 The MyBit Platform™ for investing in alternative assets
https://app.mybit.io
GNU General Public License v3.0
9 stars 31 forks source link

Setup routing within App to protect SPA while rerouting every request to index.html #46

Closed 0xjjpa closed 6 years ago

0xjjpa commented 6 years ago

Introduction Unfortunately, routing isn't what we would expect with CRA and react-dom. Some isolated routing is not working and despite the optimisations of Webpack 4 in the current version of CRA, we are still unable to fully serve all paths statically even with React-Path (see #44)

Task Description

mybit-bot commented 6 years ago

➤ Jose Aguinaga commented:

This is a WIP in here https://github.com/MyBitFoundation/MyBit-Go/pull/117, but apparently might be a bug by Now. Posted on their slack https://zeit-community.slack.com/archives/C1TMPLCKS/p1533747516000499

mybit-bot commented 6 years ago

➤ Jose Aguinaga commented:

Seems we can't automate this quite yet, but I've created manually a server script to perform basic auth server side - see https://github.com/MyBitFoundation/MyBit-Go/blob/develop/server.js. In the meantime we will stick with this until we migrate to next.js