mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
chore: Bump turbo to v2 (#27182)
* Bump the version of turbo to 2.0.3. * Fix the breaking changes in turbo config. * Make the npm version more loose. * Fix the build command for the database-design app. * Try adding some env vars to the turbo for www. * Add more missing env vars. * Bump the turbo version to 2.0.4. * Remove SUPABASE_SERVICE_ROLE_KEY from docs#build since it's used by other scripts, not by build.
This commit is contained in:
1 parent
6b869dc9bc
commit
a63731bbf8
5 files changed
+49
-39
No files matched your search
@@ -40,6 +40,7 @@ async function generateEmbeddings() {
|
||||
|
||||
const supabaseClient = createClient(
|
||||
process.env.NEXT_PUBLIC_SUPABASE_URL,
|
||||
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
||||
process.env.SUPABASE_SERVICE_ROLE_KEY,
|
||||
{
|
||||
auth: {
|
||||
|
||||
@@ -27,7 +27,7 @@ WORKDIR /app
|
||||
FROM base as turbo
|
||||
COPY . .
|
||||
|
||||
RUN npx turbo@1.13.2 prune --scope=studio --docker
|
||||
RUN npx turbo@2.0.4 prune --scope=studio --docker
|
||||
|
||||
# Install dev dependencies (only if needed)
|
||||
FROM base as deps
|
||||
|
||||
Generated
+30
-30
@@ -21,11 +21,11 @@
|
||||
"prettier-plugin-sql-cst": "^0.11.0",
|
||||
"sass": "^1.72.0",
|
||||
"supabase": "^1.151.1",
|
||||
"turbo": "^1.13.3"
|
||||
"turbo": "2.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0",
|
||||
"npm": ">=9.0.0"
|
||||
"node": "^20.0.0",
|
||||
"npm": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"apps/database-new": {
|
||||
@@ -39865,26 +39865,26 @@
|
||||
}
|
||||
},
|
||||
"node_modules/turbo": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo/-/turbo-1.13.3.tgz",
|
||||
"integrity": "sha512-n17HJv4F4CpsYTvKzUJhLbyewbXjq1oLCi90i5tW1TiWDz16ML1eDG7wi5dHaKxzh5efIM56SITnuVbMq5dk4g==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo/-/turbo-2.0.4.tgz",
|
||||
"integrity": "sha512-Ilme/2Q5kYw0AeRr+aw3s02+WrEYaY7U8vPnqSZU/jaDG/qd6jHVN6nRWyd/9KXvJGYM69vE6JImoGoyNjLwaw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"turbo": "bin/turbo"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"turbo-darwin-64": "1.13.3",
|
||||
"turbo-darwin-arm64": "1.13.3",
|
||||
"turbo-linux-64": "1.13.3",
|
||||
"turbo-linux-arm64": "1.13.3",
|
||||
"turbo-windows-64": "1.13.3",
|
||||
"turbo-windows-arm64": "1.13.3"
|
||||
"turbo-darwin-64": "2.0.4",
|
||||
"turbo-darwin-arm64": "2.0.4",
|
||||
"turbo-linux-64": "2.0.4",
|
||||
"turbo-linux-arm64": "2.0.4",
|
||||
"turbo-windows-64": "2.0.4",
|
||||
"turbo-windows-arm64": "2.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/turbo-darwin-64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.13.3.tgz",
|
||||
"integrity": "sha512-glup8Qx1qEFB5jerAnXbS8WrL92OKyMmg5Hnd4PleLljAeYmx+cmmnsmLT7tpaVZIN58EAAwu8wHC6kIIqhbWA==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-2.0.4.tgz",
|
||||
"integrity": "sha512-x9mvmh4wudBstML8Z8IOmokLWglIhSfhQwnh2gBCSqabgVBKYvzl8Y+i+UCNPxheCGTgtsPepTcIaKBIyFIcvw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -39895,9 +39895,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-darwin-arm64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.13.3.tgz",
|
||||
"integrity": "sha512-/np2xD+f/+9qY8BVtuOQXRq5f9LehCFxamiQnwdqWm5iZmdjygC5T3uVSYuagVFsZKMvX3ycySwh8dylGTl6lg==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-2.0.4.tgz",
|
||||
"integrity": "sha512-/B1Ih8zPRGVw5vw4SlclOf3C/woJ/2T6ieH6u54KT4wypoaVyaiyMqBcziIXycdObIYr7jQ+raHO7q3mhay9/A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -39908,9 +39908,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-linux-64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.13.3.tgz",
|
||||
"integrity": "sha512-G+HGrau54iAnbXLfl+N/PynqpDwi/uDzb6iM9hXEDG+yJnSJxaHMShhOkXYJPk9offm9prH33Khx2scXrYVW1g==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-2.0.4.tgz",
|
||||
"integrity": "sha512-6aG670e5zOWu6RczEYcB81nEl8EhiGJEvWhUrnAfNEUIMBEH1pR5SsMmG2ol5/m3PgiRM12r13dSqTxCLcHrVg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -39921,9 +39921,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-linux-arm64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.13.3.tgz",
|
||||
"integrity": "sha512-qWwEl5VR02NqRyl68/3pwp3c/olZuSp+vwlwrunuoNTm6JXGLG5pTeme4zoHNnk0qn4cCX7DFrOboArlYxv0wQ==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-2.0.4.tgz",
|
||||
"integrity": "sha512-AXfVOjst+mCtPDFT4tCu08Qrfv12Nj7NDd33AjGwV79NYN1Y1rcFY59UQ4nO3ij3rbcvV71Xc+TZJ4csEvRCSg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
@@ -39934,9 +39934,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-windows-64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.13.3.tgz",
|
||||
"integrity": "sha512-Nudr4bRChfJzBPzEmpVV85VwUYRCGKecwkBFpbp2a4NtrJ3+UP1VZES653ckqCu2FRyRuS0n03v9euMbAvzH+Q==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.0.4.tgz",
|
||||
"integrity": "sha512-QOnUR9hKl0T5gq5h1fAhVEqBSjpcBi/BbaO71YGQNgsr6pAnCQdbG8/r3MYXet53efM0KTdOhieWeO3KLNKybA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -39947,9 +39947,9 @@
|
||||
]
|
||||
},
|
||||
"node_modules/turbo-windows-arm64": {
|
||||
"version": "1.13.3",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.13.3.tgz",
|
||||
"integrity": "sha512-ouJCgsVLd3icjRLmRvHQDDZnmGzT64GBupM1Y+TjtYn2LVaEBoV6hicFy8x5DUpnqdLy+YpCzRMkWlwhmkX7sQ==",
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-2.0.4.tgz",
|
||||
"integrity": "sha512-3v8WpdZy1AxZw0gha0q3caZmm+0gveBQ40OspD6mxDBIS+oBtO5CkxhIXkFJJW+jDKmDlM7wXDIGfMEq+QyNCQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
||||
+4
-6
@@ -41,18 +41,16 @@
|
||||
"prettier-plugin-sql-cst": "^0.11.0",
|
||||
"sass": "^1.72.0",
|
||||
"supabase": "^1.151.1",
|
||||
"turbo": "^1.13.3"
|
||||
"turbo": "2.0.4"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/supabase/supabase.git"
|
||||
},
|
||||
"engines": {
|
||||
"npm": ">=9.0.0",
|
||||
"node": ">=20.0.0"
|
||||
"npm": "^10.0.0",
|
||||
"node": "^20.0.0"
|
||||
},
|
||||
"keywords": ["postgres", "firebase", "storage", "functions", "database", "auth"],
|
||||
"volta": {
|
||||
"node": "20.11.1"
|
||||
}
|
||||
"packageManager": "npm@10.7.0"
|
||||
}
|
||||
+13
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"pipeline": {
|
||||
"ui": "stream",
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
@@ -8,6 +9,7 @@
|
||||
"database-design#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": ["NEXT_PUBLIC_*", "OPENAI_API_KEY", "VERCEL_URL"],
|
||||
"inputs": ["$TURBO_DEFAULT$", ".env", ".env.local"],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
},
|
||||
"design-system#build": {
|
||||
@@ -17,12 +19,19 @@
|
||||
},
|
||||
"docs#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": ["NEXT_PUBLIC_*", "NODE_ENV", "OPENAI_API_KEY", "SKIP_BUILD_STATIC_GENERATION"],
|
||||
"env": [
|
||||
"ANALYZE",
|
||||
"NEXT_PUBLIC_*",
|
||||
"NODE_ENV",
|
||||
"OPENAI_API_KEY",
|
||||
"SKIP_BUILD_STATIC_GENERATION"
|
||||
],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
},
|
||||
"studio#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": [
|
||||
"ANALYZE",
|
||||
"AUTH_JWT_SECRET",
|
||||
"DEFAULT_ORGANIZATION_NAME",
|
||||
"DEFAULT_PROJECT_NAME",
|
||||
@@ -39,6 +48,7 @@
|
||||
"SUPABASE_SERVICE_KEY",
|
||||
"SUPABASE_URL",
|
||||
"VERCEL_GIT_COMMIT_SHA",
|
||||
"VERCEL_ENV",
|
||||
"VERCEL_URL"
|
||||
],
|
||||
"outputs": [".next/**", "!.next/cache/**"]
|
||||
@@ -46,6 +56,7 @@
|
||||
"www#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"env": [
|
||||
"ANALYZE",
|
||||
"GITHUB_CHANGELOG_APP_*",
|
||||
"MISC_USE_SERVICE_ROLE_KEY",
|
||||
"NEXT_PUBLIC_*",
|
||||
|
||||
Reference in new issue
Block a user