Skip to content

Commit 6fab06a

Browse files
committed
fix: prepare for prisma 1.7
1 parent 9c78ee5 commit 6fab06a

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

advanced/server/.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
PRISMA_STAGE="dev"
21
PRISMA_ENDPOINT="__PRISMA_ENDPOINT__"
3-
PRISMA_CLUSTER="__PRISMA_CLUSTER__"
42
PRISMA_SECRET="mysecret123"
53
APP_SECRET="jwtsecret123"

advanced/server/database/prisma.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# the name for the service (will be part of the service's HTTP endpoint)
2-
service: graphql-boilerplate
3-
4-
# the cluster and stage the service is deployed to
5-
stage: ${env:PRISMA_STAGE}
1+
# the endpoint of your service (this also defines the cluster the service will be deployed to)
2+
endpoint: __PRISMA_ENDPOINT__
63

74
# to disable authentication:
85
# disableAuth: true

basic/server/database/prisma.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# the name for the service (will be part of the service's HTTP endpoint)
2-
service: graphql-boilerplate
3-
4-
# the cluster and stage the service is deployed to
5-
stage: dev
1+
# the endpoint of your service (this also defines the cluster the service will be deployed to)
2+
endpoint: __PRISMA_ENDPOINT__
63

74
# to disable authentication:
85
# disableAuth: true

basic/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "graphql-boilerplate",
2+
"name": "whoo22hoo",
33
"scripts": {
44
"start": "node src/index.js",
55
"playground": "prisma playground",

basic/server/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const server = new GraphQLServer({
4242
...req,
4343
db: new Prisma({
4444
typeDefs: 'src/generated/prisma.graphql',
45-
endpoint: '__PRISMA_ENDPOINT__',
45+
endpoint: 'https://eu1.prisma.sh/public-mesquiteraptor-586/whoo22hoo/dev',
4646
secret: 'mysecret123',
4747
debug: true,
4848
}),

0 commit comments

Comments
 (0)