Open mattbylett opened 6 days ago
As the error clearly says, ui.pages
option does not exist. Where did you take that code from?
See relevant example https://github.com/keystonejs/keystone/tree/main/examples/custom-admin-ui-pages
Ok thank you for the documentation link - my mistake
apologies for wasting your time
On Tue, 15 Oct 2024 at 19:31, Marek R @.***> wrote:
As the error clearly says, ui.pages option does not exist. Where did you take that code from?
See relevant example https://github.com/keystonejs/keystone/tree/main/examples/custom-admin-ui-pages
— Reply to this email directly, view it on GitHub https://github.com/keystonejs/keystone/issues/9362#issuecomment-2413006873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNVISMPGDQE3GIG4SKJPHDZ3SZELAVCNFSM6AAAAABP4HNK3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTGAYDMOBXGM . You are receiving this because you authored the thread.Message ID: @.***>
Description
I'm trying to add a custom page to the Keystone 6 Admin UI, but I'm encountering two issues:
pages
property in the UI configuration.Steps to Reproduce
Create a new Keystone 6 project:
Create the following files:
keystone.ts:
schema.ts:
auth.ts:
admin/pages/custom-page.tsx:
Run
npm run dev
Expected Behavior
http://localhost:3000/custom
pages
propertyActual Behavior
http://localhost:3000/custom
results in a 404 errorTypeScript throws the following error:
Environment
Additional Context
This issue occurs in a clean installation of Keystone 6, suggesting it's not related to any specific project configuration.