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
Percy
Percy5mo ago
Project ID: N/A
maxralph01
maxralph015mo ago
N/A
Brody
Brody5mo ago
share your repo?
maxralph01
maxralph015mo ago
https://github.com/maxralph01/faansy-client You can ask me questions for quicker understanding of the project
Brody
Brody5mo ago
its private
maxralph01
maxralph015mo ago
OH Use this They're same
maxralph01
maxralph015mo ago
GitHub
GitHub - maxralph1/faansy-client
Contribute to maxralph1/faansy-client development by creating an account on GitHub.
maxralph01
maxralph015mo ago
Please, use this There was an error from me on the URL
Brody
Brody5mo ago
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.
maxralph01
maxralph015mo ago
OK Done. I'll try it out using BrowserRouter on production and I'll get right back to you.
Brody
Brody5mo ago
sounds good
maxralph01
maxralph015mo ago
Thanks Is working
Brody
Brody5mo ago
awesome
maxralph01
maxralph015mo ago
Now, I have 2 more problems to solve
Brody
Brody5mo ago
what would those be
Want results from more Discord servers?
Add your server