Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: updated deployments with unbroken pnpm (#42570)

Ali Waseem28443251ffce
diff --git a/apps/docs/app/api/ai/docs/route.ts b/apps/docs/app/api/ai/docs/route.ts
index 8e3df4206a6..d8c5b49c1ec 100644
--- a/apps/docs/app/api/ai/docs/route.ts
+++ b/apps/docs/app/api/ai/docs/route.ts
@@ -1,10 +1,9 @@
import { SupabaseClient } from '@supabase/supabase-js'
-import { ApplicationError, UserError, clippy } from 'ai-commands/edge'
+import { ApplicationError, clippy, UserError } from 'ai-commands/edge'
+import { isFeatureEnabled } from 'common/enabled-features'
import { NextRequest, NextResponse } from 'next/server'
import OpenAI from 'openai'
-import { isFeatureEnabled } from 'common/enabled-features'
-
export const runtime = 'edge'
/* To avoid OpenAI errors, restrict to the Vercel Edge Function regions that
overlap with the OpenAI API regions.
@@ -57,7 +56,8 @@ export async function POST(req: NextRequest) {
}
const useAltSearchIndex = !isFeatureEnabled('search:fullIndex')
- const response = await clippy(openai, supabaseClient, messages, {
+ // @ts-ignore: We have 6 version of openai and the types are not compatible with each other, we need to consolidate to one
+ const response = await clippy(openai as any, supabaseClient, messages, {
useAltSearchIndex,
})
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5e94fb5640d..32a96ed16e3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -359,7 +359,7 @@ importers:
version: 1.6.0
'@tailwindcss/container-queries':
specifier: ^0.1.1
'@types/lodash.template':
specifier: 4.5.0
version: 4.5.0
@@ -389,7 +389,7 @@ importers:
version: 1.6.0
tailwindcss:
specifier: 'catalog:'
tsconfig:
specifier: workspace:*
version: link:../../packages/tsconfig
@@ -924,7 +924,7 @@ importers:
openai:
specifier: ^5.9.0
openapi-fetch:
specifier: 0.12.4
version: 0.12.4
@@ -1306,7 +1306,7 @@ importers:
openai:
specifier: ^4.75.1
openapi-fetch:
specifier: 0.12.4
version: 0.12.4
@@ -1535,7 +1535,7 @@ importers:
version: link:../../packages/api-types
autoevals:
specifier: ^0.0.131
braintrust:
specifier: ^1.0.2
@@ -1748,7 +1748,7 @@ importers:
openai:
specifier: ^5.9.0
openapi-fetch:
specifier: 0.12.4
version: 0.12.4
@@ -2031,7 +2031,7 @@ importers:
openai:
specifier: ^4.75.1
parse-numeric-range:
specifier: ^1.3.0
version: 1.3.0
@@ -2152,7 +2152,7 @@ importers:
version: 7.47.0([email protected])
tailwindcss:
specifier: ^3.4.1
tsconfig:
specifier: workspace:*
version: link:../../packages/tsconfig
@@ -2265,7 +2265,7 @@ importers:
version: 3.5.0
openai:
specifier: ^4.75.1
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -2429,10 +2429,10 @@ importers:
version: 0.1.9
'@tailwindcss/forms':
specifier: ^0.5.0
'@tailwindcss/typography':
specifier: ^0.5.9
deepmerge:
specifier: ^4.2.2
version: 4.3.1
@@ -2445,10 +2445,10 @@ importers:
devDependencies:
tailwindcss:
specifier: 'catalog:'
tailwindcss-animate:
specifier: ^1.0.6
typescript:
specifier: 'catalog:'
version: 5.9.2
@@ -2497,7 +2497,7 @@ importers:
version: 5.9.2
vitest:
specifier: 'catalog:'
packages/eslint-config-supabase:
devDependencies:
@@ -2929,7 +2929,7 @@ importers:
openai:
specifier: ^4.75.1
react:
specifier: 'catalog:'
version: 18.3.1
@@ -28549,11 +28549,20 @@ snapshots:
dependencies:
+ dependencies:
+
dependencies:
mini-svg-data-uri: 1.4.4
+ dependencies:
+ mini-svg-data-uri: 1.4.4
+
dependencies:
lodash.castarray: 4.4.0
@@ -28562,6 +28571,14 @@ snapshots:
postcss-selector-parser: 6.0.10
+ dependencies:
+ lodash.castarray: 4.4.0
+ lodash.isplainobject: 4.0.6
+ lodash.merge: 4.6.2
+ postcss-selector-parser: 6.0.10
+
dependencies:
'@babel/code-frame': 7.26.2
@@ -29969,7 +29986,7 @@ snapshots:
std-env: 3.9.0
test-exclude: 7.0.1
tinyrainbow: 2.0.0
transitivePeerDependencies:
- supports-color
@@ -30028,7 +30045,7 @@ snapshots:
sirv: 3.0.2
tinyglobby: 0.2.15
tinyrainbow: 2.0.0
'@vitest/[email protected]':
dependencies:
@@ -30659,7 +30676,7 @@ snapshots:
dependencies:
ajv: 8.17.1
compute-cosine-similarity: 1.1.0
@@ -30667,7 +30684,7 @@ snapshots:
js-yaml: 4.1.1
linear-sum-assignment: 1.0.9
mustache: 4.2.0
zod: 3.25.76
zod-to-json-schema: 3.25.0([email protected])
transitivePeerDependencies:
@@ -37627,9 +37644,24 @@ snapshots:
transitivePeerDependencies:
- encoding
+ dependencies:
+ '@types/node': 18.18.13
+ '@types/node-fetch': 2.6.6
+ abort-controller: 3.0.0
+ agentkeepalive: 4.5.0
+ form-data-encoder: 1.7.2
+ formdata-node: 4.4.1
+ node-fetch: 2.7.0([email protected])
+ optionalDependencies:
+ ws: 8.19.0
+ zod: 3.25.76
+ transitivePeerDependencies:
+ - encoding
+
optionalDependencies:
- ws: 8.18.3
+ ws: 8.19.0
zod: 3.25.76
@@ -38019,7 +38051,7 @@ snapshots:
dependencies:
- '@types/estree': 1.0.8
+ '@types/estree': 1.0.5
is-reference: 3.0.3
zimmerframe: 1.1.4
optional: true
@@ -40790,9 +40822,9 @@ snapshots:
dependencies: