Closed scratchyone closed 3 years ago
You could maybe crawl src/index.js and look for redirect and link tags and crawl that.
Or you just force the rendering of this route in your reactSnapshot config in your package.json
"reactSnapshot": {
"include": [
"/foo"
]
}
If you have dynamically generated redirects, react-snapshot doesn't know. I have code like this as my only way of getting around the site. You click a button, it checks some information, and then adds a redirect tag.
if (!doc.authorized) { this.setState({ redirect: <Redirect to="/" /> }); }