Skip to content

Local Development issues #1

@klei30

Description

@klei30

HI, great project!
Really like to develop this locally but i am having some issues with set up and installation .
Can you provide a guide on the setup what kind of env variables should i use ?
Encountered a validation error when attempting to use the prisma.account.findUnique() method in a Next.js application integrated with Next-Auth and Prisma.
The error is related to the datasource URL configuration in schema.prisma, requiring the protocol to start with postgresql:// or postgres://.

error:

Invalid prisma.account.findUnique()` invocation:

error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres://.

To use a URL with protocol prisma://, you need to either enable Accelerate or the Data Proxy.
Enable Accelerate via prisma generate --accelerate or the Data Proxy via prisma generate --data-proxy.

More information about Data Proxy: https://pris.ly/d/data-proxy

--> schema.prisma:10
|
9 | provider = "postgresql"
10 | url = env("DATABASE_URL")
|

Validation Error Count: 1

`

.env

i am using prisma.io and have create a setup there

DATABASE_URL=prisma+postgres://accelerate.prisma-data.net/?api_key=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions