maros.studenic
maros.studenic
CCConvex Community
Created by maros.studenic on 10/14/2024 in #support-community
deploy turbo project - nextjs, react native, convex on vercel
how to deploy this repo to vercel ? https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo eg. how to structure builld command ? currently I have this in turbo.json
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local",
".env"
],
"ui": "tui",
"tasks": {
"build": {
"cache": false,
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"^build"
]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"clean": {
"cache": false
},
"deploy": {
"cache": false,
"dependsOn": [
"^build"
]
}
}
}
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local",
".env"
],
"ui": "tui",
"tasks": {
"build": {
"cache": false,
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"^build"
]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"clean": {
"cache": false
},
"deploy": {
"cache": false,
"dependsOn": [
"^build"
]
}
}
}
and this in packages/backend/package.json
{
"name": "@packages/backend",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "convex dev",
"setup": "convex dev --until-success",
"deploy": "npx convex deploy"
},
"author": "",
"license": "ISC",
"dependencies": {
"@clerk/clerk-sdk-node": "^5.0.15",
"convex": "^1.13.0",
"stripe": "^16.2.0",
"svix": "^1.25.0"
}
}
{
"name": "@packages/backend",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "convex dev",
"setup": "convex dev --until-success",
"deploy": "npx convex deploy"
},
"author": "",
"license": "ISC",
"dependencies": {
"@clerk/clerk-sdk-node": "^5.0.15",
"convex": "^1.13.0",
"stripe": "^16.2.0",
"svix": "^1.25.0"
}
}
But I dont know what to put in vercel command for build
29 replies
CCConvex Community
Created by maros.studenic on 6/26/2024 in #support-community
react native outdated quickstart - remove react-native-dotenv
This is not issue but documentation update recommendation. I was started project with react native quick setup, but with expo version 0.51, where react-native-dotenv is not supported it started with error. It only started expo initial screen. Not the acctual app. Problem was solved with removing react-native-dotenv, using basic process.env.ENV_NAME variables instead. And also I had to run npx expo start -c Happy hacking
3 replies