Railway Specific Pattern to run React App without the trailing "#" from HashRouter
Hi everyone,
Please help me with the Railway specific pattern of removing the trailing "#" in URLs whilst using HashRouter, because I want to switch to the cleaner BrowserRouter instead of HashRouter.
Note that I am using HashRouter because the BrowserRouter was not working on production.
@Brody proffered a solution using a ".toml" file on another user's thread, but I can't see the thread no more.
Thanks.
69 Replies
Project ID:
N/A
N/A
share your repo?
https://github.com/maxralph01/faansy-client
You can ask me questions for quicker understanding of the project
its private
OH
Use this
They're same
GitHub
GitHub - maxralph1/faansy-client
Contribute to maxralph1/faansy-client development by creating an account on GitHub.
Please, use this
There was an error from me on the URL
https://github.com/brody192/vite-react-template
copy the nixpacks.toml and Caddyfile from this repo into yours.
if you have any build or start commands set in your service settings, remove them.
OK
Done. I'll try it out using BrowserRouter on production and I'll get right back to you.
sounds good
Thanks
Is working
awesome
Now, I have 2 more problems to solve
what would those be