How to properly apply patches to Keystone 6? #9383
-
How to properly apply patches to Keystone 6 auth package's login page?Issue DescriptionI'm trying to customize the Keystone 6 auth package's login page by applying a patch, but the changes aren't reflecting in the UI after applying the patch. What I've Done
Current BehaviorThe changes are not visible on the sign-in page after applying the patch. Expected BehaviorThe sign-in page should display "Sign In - Patch Applied" instead of "Sign In". Questions
Environment
Any guidance on the correct process to apply patches to Keystone 6 packages would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you are importing To use
|
Beta Was this translation helpful? Give feedback.
When you are importing
@keystone-6/auth
you are actually importing from@keystone-6/auth/dist
- javascript files being output of transpilation from typescript. So changing source files will change nothing (unless you import from /src/ directly, but I doubt it will work).To use
patch-package
you would need to:pnpm build
)(For SigninPage the relevant dir is
@keystone-6/auth/pages/SigninPage/dist/
)