Using router in a dynamic subpath, recieving page not found
I'm trying to host a static app on either
/ & /subpath
I've tried all combinations of setting the basePath on the router & in vite to "", "./" & "/" , the app does load however we first hit a page not found , navigating to / works from within the app but / should be /subpath
Express
Vite
Router
Any help is appreciated, i dont want to hardcode the subpath into the router if i can avoid it!3 Replies
multiple-amethyst•6mo ago
can you please create a github issue with a complete example repo?
rare-sapphireOP•6mo ago
GitHub
GitHub - JoshHiles/JoshHiles-tanstack-router-dynamic-subpath
Contribute to JoshHiles/JoshHiles-tanstack-router-dynamic-subpath development by creating an account on GitHub.
rare-sapphireOP•6mo ago
Should just be able to clone & run
pnpm install & then pnpm run dev to build and run the express server
Apologies for the rush job, any issues give me a shout