Skip to content

Commit 3ca2a29

Browse files
authored
docs(router): usage of routeFilePrefix for file-based routing (#4845)
1 parent f3a5947 commit 3ca2a29

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/router/api/file-based-routing.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The following options are available for configuring the file-based routing:
1313
- [`virtualRouteConfig`](#virtualrouteconfig)
1414
- [`routeFilePrefix`](#routefileprefix)
1515
- [`routeFileIgnorePrefix`](#routefileignoreprefix)
16+
- [`routeFileIgnorePattern`](#routefileignorepattern)
1617
- [`indexToken`](#indextoken)
1718
- [`routeToken`](#routetoken)
1819
- [`quoteStyle`](#quotestyle)
@@ -58,6 +59,12 @@ This option is used to configure the Virtual File Routes feature. See the "Virtu
5859

5960
By default, this value is set to `undefined`.
6061

62+
### `routeFilePrefix`
63+
64+
This option is used to identify route files in the route directory. This means that only files that start with this prefix will be considered for routing.
65+
66+
By default, this value is set to `` and as such all files in the route directory will be considered for routing.
67+
6168
### `routeFileIgnorePrefix`
6269

6370
This option is used to ignore specific files and directories in the route directory. This can be useful if you want to "opt-in" certain files or directories that you do not want to be considered for routing.
@@ -81,12 +88,6 @@ This option is used to ignore specific files and directories in the route direct
8188

8289
By default, this value is set to `undefined`.
8390

84-
### `routeFilePrefix`
85-
86-
This option is used to identify route files in the route directory. This means that only files that start with this prefix will be considered for routing.
87-
88-
By default, this value is set to `` and as such all files in the route directory will be considered for routing.
89-
9091
### `routeToken`
9192

9293
As mentioned in the Routing Concepts guide, a layout route is rendered at the specified path, and the child routes are rendered within the layout route. The `routeToken` is used to identify the layout route file in the route directory.

0 commit comments

Comments
 (0)