#How to use only certain files as routes?

2 messages · Page 1 of 1 (latest)

silent burrow
#

How to use only specific files like __root.tsx, index.tsx, and route.tsx as route files?

#

already tried but index.tsx file is not beign recognized

tanstackStart({
    router: {
        routeFileIgnorePrefix: "",                routeFileIgnorePattern: "^(?!(__root\\.tsx|index\\.tsx|route\\.tsx)$).*$",
    },
}),