@@ -317,7 +317,7 @@ You can combine both prefixes and suffixes to create very specific routing patte
317317
318318# React
319319
320- ``` tsx title="src/routes/users/user-{$userId}. json"
320+ ``` tsx title="src/routes/users/user-{$userId}[.] json.tsx "
321321export const Route = createFileRoute (' /users/user-{$userId}.json' )({
322322 component: UserComponent ,
323323})
@@ -331,7 +331,7 @@ function UserComponent() {
331331
332332# Solid
333333
334- ``` tsx title="src/routes/users/user-{$userId}. json"
334+ ``` tsx title="src/routes/users/user-{$userId}[.] json.tsx "
335335export const Route = createFileRoute (' /users/user-{$userId}.json' )({
336336 component: UserComponent ,
337337})
@@ -455,7 +455,7 @@ Optional parameters support prefix and suffix patterns:
455455
456456# React
457457
458- ``` tsx title="src/routes/files/prefix{-$name}. txt"
458+ ``` tsx title="src/routes/files/prefix{-$name}[.] txt.tsx "
459459// Route: /files/prefix{-$name}.txt
460460// Matches: /files/prefix.txt and /files/prefixdocument.txt
461461export const Route = createFileRoute (' /files/prefix{-$name}.txt' )({
@@ -470,7 +470,7 @@ function FileComponent() {
470470
471471# Solid
472472
473- ``` tsx title="src/routes/files/prefix{-$name}. txt"
473+ ``` tsx title="src/routes/files/prefix{-$name}[.] txt.tsx "
474474// Route: /files/prefix{-$name}.txt
475475// Matches: /files/prefix.txt and /files/prefixdocument.txt
476476export const Route = createFileRoute (' /files/prefix{-$name}.txt' )({
0 commit comments