小编Nit*_*dav的帖子

PRISMA:身份验证令牌无效:未提供“授权”标头

在没有秘密的情况下在我的本地运行 Prisma 运行良好..现在我正在尝试为生产运行它我总是ERROR: Authentication token is invalid: 'Authorization' header not provided在我的服务器和本地遇到这个错误。我肯定错过了一些东西,但不知道是什么。请帮助以下是我的prisma.yml 和docker-compose.yml 文件。

棱镜.yml

# This service is based on the type definitions in the two files
# databasetypes.prisma` and `database/enums.prisma`
datamodel:
          - ./packages/routes/index.directives.graphql
          - ./packages/routes/index.scalar.graphql
          - ./packages/routes/account/index.enum.graphql
          - ./packages/routes/account/index.prisma
          ...

# Generate a Prisma client in JavaScript and store in
# a folder called `generated/prisma-client`.
# It also downloads the Prisma GraphQL schema and stores it
# in `generated/prisma.graphql`.
generate:
  - generator: javascript-client
    output: ./prisma

# The …
Run Code Online (Sandbox Code Playgroud)

node.js docker docker-compose graphql prisma

5
推荐指数
1
解决办法
655
查看次数

标签 统计

docker ×1

docker-compose ×1

graphql ×1

node.js ×1

prisma ×1