diff --git a/src/components/app/routes/createAppRouter.test.jsx b/src/components/app/routes/createAppRouter.test.jsx index baee53fbaf..80f810af44 100644 --- a/src/components/app/routes/createAppRouter.test.jsx +++ b/src/components/app/routes/createAppRouter.test.jsx @@ -134,6 +134,14 @@ describe('createAppRouter', () => { usesQueryClient: false, }], }, + { + currentRoutePath: '/test-enterprise/invite/enterprise-customer-invite-key', + expectedRouteTestId: 'invite', + expectedRouteLoaders: [{ + loader: makeEnterpriseInviteLoader, + usesQueryClient: false, + }], + }, { currentRoutePath: '/test-enterprise', expectedRouteTestId: 'dashboard', diff --git a/src/routes.tsx b/src/routes.tsx index ae89823b99..01530b3621 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -167,6 +167,19 @@ function getEnterpriseSlugRoutes(queryClient?: Types.QueryClient) { }; }, }, + { + path: 'invite/:enterpriseCustomerInviteKey', + lazy: async () => { + const { + default: EnterpriseInviteRoute, + makeEnterpriseInviteLoader, + } = await import('./components/app/routes/EnterpriseInviteRoute'); + return { + Component: EnterpriseInviteRoute, + loader: makeEnterpriseInviteLoader(), + }; + }, + }, { path: '*', element: ,