@shopify/cli
Version:
A CLI tool to build for the Shopify platform
10 lines (8 loc) • 466 B
text/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;