I'm building a SPA using react-router and having trouble running this on a public facing server.
Concerns
- Need the ability to load links like
example.com/about
- SEO is important to me thus using
HashHistory
is not ideal. - Need to be able to use
window
in javascript.
Solutions Tried
- Hosting the output of
npm run build
doesn't work well for concerns 1 & 2 above. - Setting up
express
usingapp.use(express.static('public'))
also has similar issues.
via Anshul Koka
No comments:
Post a Comment