Skip to content

Setup not working #90

@rubychilds

Description

@rubychilds

I've tried using this. The readme says during setup, "Vercel will prompt you to create a new Postgres database". This is not the case. It goes straight into requesting environment variables, and requests the postgres URL.

I've added Prisma postgres to assist with this. I install Prisma postgres from the markeplace, and copy the env variables locally. I then need to create the databases, so I add a prisma/schema.prisma file, as below:

// schema.prisma

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url = env("POSTGRES_URL") // uses connection pooling
}

enum Status {
  ACTIVE
  INACTIVE
  ARCHIVED
}

model Product {
  id           Int      @id @default(autoincrement())
  imageUrl     String   @map("image_url")
  name         String
  status       Status
  price        Decimal  @db.Decimal(10, 2)
  stock        Int
  availableAt  DateTime @map("available_at")

  @@map("products")
}

It then complains that the project uses Drizzle https://orm.drizzle.team/docs/tutorials/drizzle-with-vercel which is not on the marketplace.

I think I am confused here, as the Readme mentions how you should be able to create a postgres DB from within Vercel, implying there was something that existed that wasn't needing to be installed from the DB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions