Vercel 사용법

Ritslurrrr·2024년 6월 25일
0

Vercel

목록 보기
1/2

Hosting

  1. Vercel에 github 연결하고 프로젝트 연결하면 호스팅됨

postgreSQL

  1. 생성하기
  2. 프로젝트에서 패키지 추가
bun add @vercel/postgres
  1. 연결하기
bunx vercel link
  1. .env.development.local 연결하기
bunx vercel env pull .env.development.local
  • Prisma ORM 사용시 연결하기
datasource db {
  provider = "postgresql"
  url = env("POSTGRES_PRISMA_URL") // uses connection pooling
  directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
}
profile
FullStackDeveloper(WEB,APP)

0개의 댓글