Skip to content

Commit 19f0836

Browse files
brkalowclaude
authored andcommitted
feat(backend): Add Frontend API proxy helpers (#7602)
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 09fa001 commit 19f0836

File tree

19 files changed

+1430
-9
lines changed

19 files changed

+1430
-9
lines changed

.changeset/frontend-api-proxy.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/backend': minor
3+
'@clerk/nextjs': minor
4+
'@clerk/express': minor
5+
'@clerk/shared': minor
6+
---
7+
8+
Add Frontend API proxy support via `frontendApiProxy` option in `clerkMiddleware`

packages/backend/package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@
7575
"default": "./dist/webhooks.js"
7676
}
7777
},
78+
"./proxy": {
79+
"import": {
80+
"types": "./dist/proxy.d.ts",
81+
"default": "./dist/proxy.mjs"
82+
},
83+
"require": {
84+
"types": "./dist/proxy.d.ts",
85+
"default": "./dist/proxy.js"
86+
}
87+
},
7888
"./package.json": "./package.json"
7989
},
8090
"main": "./dist/index.js",
@@ -83,7 +93,8 @@
8393
"errors",
8494
"internal",
8595
"jwt",
86-
"webhooks"
96+
"webhooks",
97+
"proxy"
8798
],
8899
"scripts": {
89100
"build": "tsup",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"main": "../dist/proxy.js",
3+
"module": "../dist/proxy.mjs",
4+
"types": "../dist/proxy.d.ts"
5+
}

0 commit comments

Comments
 (0)