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
HashHistoryis not ideal. - Need to be able to use
windowin javascript.
Solutions Tried
- Hosting the output of
npm run builddoesn't work well for concerns 1 & 2 above. - Setting up
expressusingapp.use(express.static('public'))also has similar issues.
via Anshul Koka
No comments:
Post a Comment