PRISMA_ENDPOINT incorrect - url has duplicate service name
nhuesmann opened this issue · 3 comments
nhuesmann commented
PRISMA_ENDPOINT in .env is incorrectly set when using node-advanced boilerplate.
Steps to reproduce:
prisma init <my-project>
- Setup:
GraphQL server/fullstack boilerplate (recommended)
- Boilerplate:
node-advanced
- Cluster:
my-name-022z35/prisma-us1
- Endpoint:
https://us1.prisma.sh/my-name-022z35/my-project/dev
.env contents are as follows
PRISMA_STAGE="dev"
PRISMA_ENDPOINT="https://us1.prisma.sh/my-name-022z35/my-project/my-project"
PRISMA_CLUSTER="my-name-022z35/prisma-us1"
PRISMA_SECRET="mysecret123"
APP_SECRET="jwtsecret123"
PRISMA_ENDPOINT has a duplicate service
name. Full endpoint should be:
https://us1.prisma.sh/my-name-022z35/my-project/dev
Instantiation of Prisma object in index.js
should have the endpoint property as:
`${process.env.PRISMA_ENDPOINT}/${process.env.PRISMA_STAGE}`
marktani commented
Thanks, this is caused by this error: https://github.com/graphcool/prisma/issues/2230.
marktani commented
This is now fixed, thanks for the heads up @nhuesmann 🙏