Replies: 2 comments 1 reply
-
Hello every one again, sorry to ask again, but I still haven't succeed about this... Thank you :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
If those routes are identical, you could re-export everything from one on the another, like doing: export * from "~/routes/$";
export { default } from "~/routes/$"; Or if you want the index to be the source of truth: export * from "~/routes/_index";
export { default } from "~/routes/_index"; |
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
-
Hi every one,
I would like any page on my website to show the same tsx file.
for example :
domain.ext/page
domain.ext/toto
domain.ext/plouf/tata
domain.ext
domain.ext/meuh1/meuh2/meuh3
any page should reach the same component.
So I create a single file :
/routes/$.tsx
and it's working well except fordomain.ext
.I realized that
domain.ext
is working only if I have a/routes/index.tsx
.So I created it, but of course
$.tsx
andindex.tsx
are identical.Is there a way to have only one file that can catch any page even index ?
Thank you for your help 😁
Beta Was this translation helpful? Give feedback.
All reactions