Git Product home page Git Product logo

prisma-pscale-edge-basic's Introduction

Basic Prisma PlanetScale Vercel Edge Example

Steps to Reproduce

  1. Create a PlanetScale Database

  2. Add DATABASE_URL to a .env file in project root

  3. Install dependencies using pnpm install

  4. Push schema changes to database

    prisma db push
    prisma generate
  5. Start Local Dev Server

    pnpm build
    pnpm dev
  6. Fork the repo to your own account

  7. Import the forked-repo into vercel

  8. View Deployment and Logs to see error

Issue Description

This is a basic application that demonstrates an issue with Prisma's new preview feature, driver adapters. You'll notice that this project works great in local development.

However, when vercel attempts to build and deploy the repo, it results in the following error:

Error: PrismaClient is not configured to run in Vercel Edge Functions or Edge Middleware. In order to run Prisma Client on edge runtime, either: - Use Prisma Accelerate: https://pris.ly/d/accelerate - Use Driver Adapters: https://pris.ly/d/driver-adapters If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report at (../../../../node_modules/.pnpm/@[email protected][email protected]/node_modules/.prisma/client/index-browser.js:173:14) at (../../../../.svelte-kit/output/server/entries/pages/_page.server.ts.js:8:29) at (../../../../.svelte-kit/output/server/index.js:1001:41) at (../../../../.svelte-kit/output/server/index.js:2531:23)

prisma-pscale-edge-basic's People

Contributors

shawnlong636 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.