This description was created by Ellipsis for commit 05ccc63797ac5da8150ea9aff8598c6342c1ce7f
Summary:
Replaced authenticateUser with getUser, added middleware for user validation, updated environment variables, enhanced nixpacks configuration, and added parseSsOutput function with tests.
Key points:
Replaced authenticateUser with getUser in multiple API routes for user authentication.
Added userMiddleware in apps/next/app/api/[[...route]]/shared.ts for user validation.
Introduced clerkMiddleware and userMiddleware in apps/next/app/api/[[...route]]/route.ts.
Added CLERK_PUBLISHABLE_KEY to apps/next/.env.example.
Updated apps/next/package.json dependencies.
Removed apps/next/app/api/admin/cluster/route.ts and apps/next/app/api/user/whoami/route.ts.
Enhanced nixpacks configuration in apps/next/app/api/[[...route]]/up/index.ts.
Added parseSsOutput function and its tests in apps/next/lib/ss/index.ts and apps/next/lib/ss/index.test.ts.
Summary:
Replaced
authenticateUser
withgetUser
, added middleware for user validation, updated environment variables, enhancednixpacks
configuration, and addedparseSsOutput
function with tests.Key points:
authenticateUser
withgetUser
in multiple API routes for user authentication.userMiddleware
inapps/next/app/api/[[...route]]/shared.ts
for user validation.clerkMiddleware
anduserMiddleware
inapps/next/app/api/[[...route]]/route.ts
.CLERK_PUBLISHABLE_KEY
toapps/next/.env.example
.apps/next/package.json
dependencies.apps/next/app/api/admin/cluster/route.ts
andapps/next/app/api/user/whoami/route.ts
.nixpacks
configuration inapps/next/app/api/[[...route]]/up/index.ts
.parseSsOutput
function and its tests inapps/next/lib/ss/index.ts
andapps/next/lib/ss/index.test.ts
.Generated with :heart: by ellipsis.dev