Multi page (HTML) and Tanstack Router #16504
Replies: 2 comments
-
It seems to be something related to the dev server, the path Is there any way to "rewrite" this behavior in the dev server? Some middleware maybe. In production I can handle with it using nginx. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project that I'll need create 3 HTML files, and they will share the same JS source. The main reason is that I need 2 differents
manifest
files for each HTML, it will be a PWA application with different themes and logos.So I created the project using Vite and Tanstack Router, and follow this instructions to create and build 3 differents HTML files.
It work normaly, but when I navigate to an internal route of Tanstack Router, and then refresh the browser, the server assume that the user is in the root page, not in the internal page on the internal route.
Here is a minimal reproducible example: https://stackblitz.com/edit/vitejs-vite-sttxb4
Here's a gif with the behavior:
Is there any workaround for this? What I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions