Skip to content

Commit c0a7455

Browse files
authored
feat(nextjs): Export MultisessionAppSupport from @clerk/nextjs/internal (clerk#2553)
1 parent cef2c7d commit c0a7455

5 files changed

Lines changed: 22 additions & 0 deletions

File tree

.changeset/wild-emus-whisper.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/nextjs': patch
3+
---
4+
5+
Export MultisessionAppSupport from @clerk/nextjs/internal
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"main": "../dist/cjs/internal.js",
3+
"module": "../dist/esm/internal.js",
4+
"types": "../dist/types/internal.d.ts"
5+
}

packages/nextjs/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"types": "./dist/types/errors.d.ts",
4040
"import": "./dist/esm/errors.js",
4141
"require": "./dist/cjs/errors.js"
42+
},
43+
"./internal": {
44+
"types": "./dist/types/internal.d.ts",
45+
"import": "./dist/esm/internal.js",
46+
"require": "./dist/cjs/internal.js"
4247
}
4348
},
4449
"types": "./dist/types/index.d.ts",

packages/nextjs/src/client-boundary/controlComponents.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ export {
1313
RedirectToCreateOrganization,
1414
RedirectToOrganizationProfile,
1515
} from '@clerk/clerk-react';
16+
17+
export { MultisessionAppSupport } from '@clerk/clerk-react/internal';

packages/nextjs/src/internal.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* These need to be explicitly listed. Do not use an * here.
3+
* If you do, app router will break.
4+
*/
5+
export { MultisessionAppSupport } from './client-boundary/controlComponents';

0 commit comments

Comments
 (0)