Intended PR after '## Route Metadata' section and code
To redirect to the route /dashboard
from /
, define redirectTo
and pathMatch
inside src/app/routes/index.ts
:
import { RouteMeta } from '@analogjs/router';
export const routeMeta: RouteMeta = {
redirectTo: '/dashboard',
pathMatch: 'full',
};
Or is there a preference to keep using parenthesis index route like src/app/routes/(redirect).ts
?
Owner Name | analogjs |
Repo Name | analog |
Full Name | analogjs/analog |
Language | TypeScript |
Created Date | 2022-07-06 |
Updated Date | 2023-03-28 |
Star Count | 885 |
Watcher Count | 18 |
Fork Count | 67 |
Issue Count | 33 |
Issue Title | Created Date | Updated Date |
---|