T
Typebot7mo ago
Badson

VERCEL BUG?

Hi, It seems to me that there is some problem now with the implementation of the new version in vercel. With the previous ones there were no problems - now errors such as:
Error: x could not find task db:migrate in project Error: Command “bunx turbo build --filter=builder.... && bunx turbo db:migrate” exited with 1 With this project also appears during deployment on vercel the TURBO option which was also not there before. I'll add that I didn't change anything in the code itself, and it is no longer possible to deploy on vercel according to the instructions from the dock. Please help me. when can I find old version?
No description
8 Replies
Hall
Hall7mo ago
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Typebot Community
Badson
BadsonOP7mo ago
I found a solution, update your turbo.json: { "$schema": "https://turbo.build/schema.json", "globalDependencies": [".env"], "globalEnv": ["DATABASE_URL", "SKIP_ENV_CHECK"], "globalPassThroughEnv": ["ENCRYPTION_SECRET"], "tasks": { "dev": { "dependsOn": ["^db:generate", "^db:push", "@typebot.io/react#build"], "persistent": true }, "build": { "env": ["VERCEL_*", "NEXTAUTH_URL", "SENTRY_*", "LANDING_PAGE_URL"], "dependsOn": ["^build", "^db:generate"], "outputs": [ ".next/**", "!.next/cache/**", "dist/**", "build/**", "public/__ENV.js" ], "inputs": ["$TURBO_DEFAULT$", ".env"], "outputLogs": "new-only" }, "db:migrate": { "dependsOn": ["@typebot.io/prisma#db:generate"], // Dodaj zależność od generowania schematu "env": ["DATABASE_URL"], // Upewnij się, że zmienna środowiskowa jest ustawiona "cache": false }, "docs#build": { "dependsOn": ["api:generate"], "outputs": ["build/**"], "outputLogs": "new-only" }, "api:generate": { "dependsOn": ["bot-engine#build", "@typebot.io/prisma#db:generate"], "cache": false }, "db:generate": { "cache": false }, "db:push": { "cache": false }, "db:cleanDatabase": { "env": ["NEXTAUTH_URL"], "dependsOn": ["@typebot.io/prisma#db:generate"], "cache": false }, "checkAndReportChatsUsage": { "env": ["STRIPE_*", "NEXTAUTH_URL", "SMTP_*"], "dependsOn": ["@typebot.io/prisma#db:generate"], "cache": false }, "//#format-and-lint": {}, "//#format-and-lint:fix": { "cache": false } } } then upgrade your package.json: { "scripts": { "db:migrate": "prisma migrate deploy --schema=../../packages/prisma/postgresql/schema.prisma", "dev": "dotenv -e ./.env -e ../../.env -- next dev -p 3000", "build": "dotenv -e ./.env -e ../../.env -- next build", "start": "dotenv -e ./.env -e ../../.env -- next start", "test": "dotenv -e ./.env -e ../../.env -- playwright test", "test:show-report": "playwright show-report src/test/reporters", "test:ui": "dotenv -e ./.env -e ../../.env -- playwright test --ui" } } and it works for me
Guy Joël
Guy Joël2w ago
@Badson Hi✨ Please, will you help me with a video to install TYPEBOT on VERCEL, integrated with SUPABASE ?? I am a bigginer, and the manual is a little confusing to me. Thanks
Baptiste
Baptiste2w ago
The command is:
bunx turbo build && bunx turbo db:migrate [email protected]/prisma
bunx turbo build && bunx turbo db:migrate [email protected]/prisma
Guy Joël
Guy Joël2w ago
🙏 Please, could you help me with a video tutorial 🥲 I am still confused with the documentation (Environnement settings, etc) as I am a bigginer with deployement on servers.
Baptiste
Baptiste2w ago
Sorry, I limit the support for self-hosting. I strongly suggest that you use the cloud version of Typebot if you don't know how to self host and maintain an app properly
Guy Joël
Guy Joël2w ago
You are right ! Thanks you already did great♥️

Did you find this page helpful?