Skip to content

Commit

Permalink
docs(start/future-flags): fix flatRoutes example (#10272)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm authored Nov 26, 2024
1 parent 5cd24ab commit 7d15da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@
- ramiroazar
- RATIU5
- raulrpearson
- raulfdm
- real34
- realjokele
- redabacha
Expand Down
5 changes: 2 additions & 3 deletions docs/start/future-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,9 @@ This package matches the API of React Router v7's `@react-router/fs-routes`, mak
> If you've configured `ignoredRouteFiles` to `["**/*"]`, you should skip this step since you're already opting out of Remix's file system routing.
```ts filename=app/routes.ts
import { flatRoutes } from "@remix-run/fs-routes";
import type { RouteConfig } from "@remix-run/route-config";
import { flatRoutes } from '@remix-run/fs-routes';

export const routes: RouteConfig = flatRoutes();
export default flatRoutes();
```

👉 **If you used the `routes` config option, add `@remix-run/routes-option-adapter` and use it in `routes.ts`**
Expand Down

0 comments on commit 7d15da6

Please sign in to comment.