8000 GitHub - simonjoom/prisma3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

simonjoom/prisma3

Repository files navigation

How to use Prisma with SST

Getting Started

Install the example.

$ npm init serverless-stack --example prisma
# Or with Yarn
$ yarn create serverless-stack --example prisma

Prisma

See the example stack to see how the Prisma integration works. It creates a reusable Prisma layer that contains the necessary binaries that can be attached to all functions that need it. The only change required to your schema.prisma is the following, to pull the binary code needed for the AWS Lambda environment:

generator client {
  provider = "prisma-client-js"
  binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

Make sure you generate the prisma code before you run sst start or sst deploy

$ yarn prisma generate

Documentation

Learn more about the SST.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0