agileurbanite / ui.multisafe

5 stars 8 forks source link

404 errors when using built source #81

Open mikedotexe opened 2 years ago

mikedotexe commented 2 years ago

When I run the app using yarn start the frontend behaves fine, but when I use yarn build and use the output in the build directory, it doesn't work.

Steps to reproduce:

  1. install node modules yarn or npm i
  2. yarn build or npm run build
  3. Take that output and use a simple web server to display the contents.
  4. Click on the "Get started" button and follow the flow through NEAR Wallet. It will eventually redirect back to the dApp but we see a 404.

While this could be a web server issue, I believe we might have something wrong with our routing. I think we might be able to fix this by taking a closer look at the routes, in particular redirectFromWallet and seeing if we can fix it on the React side. Also, please don't feel limited to attempt to a solution beyond this if you have a good instinct.