Skip to content

Commit

Permalink
Fix id field Admin UI error (#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 Jun 29, 2021
1 parent c974fb7 commit 475307e
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

1 comment on commit 475307e

@vercel
Copy link

@vercel vercel bot commented on 475307e Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.