I was able to deploy but when I access the playgro...
# orm-help
j
I was able to deploy but when I access the playground, the schema is not loading. Not sure what the problem is. Thinking it could be something in my prisma.yml config file.
p
are you setting a secret in the
prisma.yml
? you might need to run
prisma token
to generate a token whcih you pass in as a header in the playground
j
Yes I’m using a secret. Do I have to set the endpoint as well? I did that
p
and in the headers of the playground, set I think
Authorization: token
j
Like this? { “Authorization”: “xxxxxx” }
h
Like this:
Copy code
{
  "Authorization": "Bearer xxxxxx"
}
Where xxxxx is copied from your terminal when you used
prisma generate
p
ah yes exactly
with
Bearer
did that work?
j
No
Do I need to specify the endpoint in the prisma.yml file? What I’m doing is after I run the now deployment, I run the alias command and put that new url as the endpoint in prisma.yml
Anyone?
p
you might need the new endpoint in order to generate the token, but it might just be the secrete that is what’s necessary
n
you can run
prisma playground --web
to open a playground in your browser with the correct header.
prisma cool 1
j
@nilan That didn’t work. I am able to access the demo playground that prisma gives me (ex. https://us1.prisma.sh/public-arrowgriffin-129/prisma-test/dev) and it has my schema. When I try and access the playground for the zeit now server, it cannot get the schema. I did change the endpoint in my prisma.yml file (ex. endpoint: https://prisma-now.now.sh)
Any idea?