Skip to content

Commit

Permalink
Fix id field Admin UI error (keystonejs#6022)
Browse files Browse the repository at this point in the history
* Fix id field Admin UI error

* Add a changeset

* Actually fix it

* Update next-config.ts
  • Loading branch information
emmatown authored and Nikitoring committed Sep 13, 2021
1 parent 59ac676 commit afa5dcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-impalas-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Fixed error when loading the Admin UI due to the id field changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export const config = withPreconstruct({
),
};
if (isServer) {
config.externals = [...config.externals, /@keystone-next\/keystone/, /@keystone-next\/types/];
config.externals = [
...config.externals,
/@keystone-next\/keystone(?!\/___internal-do-not-use-will-break-in-patch\/admin-ui\/id-field-view)/,
/@keystone-next\/types/,
];
}
return config;
},
Expand Down

0 comments on commit afa5dcf

Please sign in to comment.