Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,30 @@ jobs:

- name: Test the Platform SDK
run: npm test -w @base44/platform

server-error-capture-e2e:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Wix gateway proxy (mandatory)
uses: ./.github/actions/wix-gateway-proxy

# Vite 8 needs Node 22.12 or later.
- name: Use Node.js 22.x
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22.x"
cache: "npm"
cache-dependency-path: |
package-lock.json
packages/sdk/tests/worker-e2e/package-lock.json

- name: Build the SDK
run: npm ci && npm run build -w @base44/sdk

- name: Run the TanStack Start app in Miniflare and workerd
working-directory: packages/sdk/tests/worker-e2e
run: npm ci && npm test
9 changes: 9 additions & 0 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,12 @@ export type {
RemoveAccessTokenOptions,
GetLoginUrlOptions,
} from "./utils/auth-utils.types.js";

// Server error capture, for full-stack apps' server middleware
export {
recordServerError,
annotateServerResponse,
serverErrorResponse,
getAnonymousVisitorId,
type RecordServerErrorOptions,
} from "./server-errors.js";
Loading