Skip to content

Commit

Permalink
Fixed error from prisma when using .keystone/api from `generateNode…
Browse files Browse the repository at this point in the history
…API` in a API route (keystonejs#6381)
  • Loading branch information
emmatown authored and Nikitoring committed Sep 14, 2021
1 parent 0616405 commit c048895
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-stingrays-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Fixed error from prisma when using `.keystone/api` from `generateNodeAPI` in a API route (`admin/pages/api/*`)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const config = withPreconstruct({
config.externals = [
...config.externals,
/@keystone-next\/keystone(?!\/___internal-do-not-use-will-break-in-patch\/admin-ui\/id-field-view|\/fields\/types\/[^\/]+\/views)/,
/@keystone-next\/types/,
'.prisma/client',
];
}
return config;
Expand Down

0 comments on commit c048895

Please sign in to comment.