使用Apex / Up将Prisma服务器部署到Lambda

时间:2018-08-29 09:41:34

标签: lambda graphql apex prisma

我在部署file-handling-s3示例时遇到问题。我尝试使用up进行部署,但构建失败,并出现以下错误:

Error: building: "build" hook: "rm -rf dist && tsc": src/index.ts(17,5): error TS2345: Argument of type '{ typeDefs: string; endpoint: string; secret: string; debug: true; }' is not assignable to parameter of type 'BasePrismaOptions'. Object literal may only specify known properties, and 'typeDefs' does not exist in type 'BasePrismaOptions'.

如果我在Prisma中注释typeDefs,则可以构建,但Lambda给出:

  

内部服务器错误

我已经尝试并使用up部署了样板graphql-yoga服务器,并且运行正常。

我没有进行任何修改,试图部署克隆的文件。

0 个答案:

没有答案