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
notable-maroon•3mo ago
can you please create a github issue with a complete example repo?
quickest-silverOP•3mo ago
GitHub
GitHub - JoshHiles/JoshHiles-tanstack-router-dynamic-subpath
Contribute to JoshHiles/JoshHiles-tanstack-router-dynamic-subpath development by creating an account on GitHub.
quickest-silverOP•3mo 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