10 lines
466 B
TypeScript
10 lines
466 B
TypeScript
import {flatRoutes} from '@react-router/fs-routes';
|
|
import {type RouteConfig} from '@react-router/dev/routes';
|
|
import {hydrogenRoutes} from '@shopify/hydrogen';
|
|
|
|
export default hydrogenRoutes([
|
|
...(await flatRoutes()),
|
|
// Manual route definitions can be added to this array, in addition to or instead of using the `flatRoutes` file-based routing convention.
|
|
// See https://reactrouter.com/api/framework-conventions/routes.ts#routests
|
|
]) satisfies RouteConfig;
|