stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 389 forks source link

Use multiple index.html with different apps #552

Closed UnickSoft closed 2 years ago

UnickSoft commented 2 years ago

I have 2 react apps, they includes in 2 different index.html.

/static/index.html
/static/task/index.html

I start react-snap from static folder. It generates static pages. For example: /static/task/3. It use /static/index.html as base page for /static/task/3, but I want to use /static/task/index.html. Maybe it happened becase links to /static/task/3 go from /static/index.html based page. I tried to use include setting, but my pages, which is based on /static/task/index.html, do not have link to /static/task/3. Is it possible use different index.html for different urls?

UnickSoft commented 2 years ago

I solved it by running react-snap 2 times: for /static/index.html and for /static/task/index.html.