Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 errors when using built source #81

Open
mikedotexe opened this issue Jan 26, 2022 · 0 comments
Open

404 errors when using built source #81

mikedotexe opened this issue Jan 26, 2022 · 0 comments

Comments

@mikedotexe
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant