Oliver Evans [3:28 AM] Hi all, I'm wondering if it...
# orm-help
o
Oliver Evans [3:28 AM] Hi all, I'm wondering if it's possible to deploy a prisma service to a custom endpoint via nginx. I have a service
my-service
and a stage
dev
deployed. I can access it within my cluster via graphql playground without an issue at
<https://internal-service-address/my-service/dev>
. Now, I want to make it externally available at
<https://my-website.com/prisma-dev>
, so I have nginx routing
<https://my-website.com/prisma-dev> -> <https://internal-service-address-my-service/dev>
. If I send a graphql query to
<https://my-website.com/prisma-dev>
, then I get
Copy code
{
  "errors": [
    {
      "message": "Project not found: 'prisma-dev_default'",
      "code": 3016,
      "requestId": "local:cjvywtsd8z7160999t2tfncc0"
    }
  ]
}
and if I send a query to
<https://my-website.com/prisma-dev/my-service/dev>
, then I get
Copy code
{
  "errors": [
    {
      "message": "Project not found: 'prisma-dev~my-service_dev'",
      "code": 3016,
      "requestId": "local:cjvywxpufz71d0999cn56um0b"
    }
  ]
}
Is there a recommended way to deal with this situation? Thanks! Oliver
d
Interesting, can you please create an issue here: https://github.com/prisma/prisma/issues/new?template=bug_report.md With details like your nginx config amongst other things!