Strapi v4 customize page using patch-package

System Information
  • Strapi Version: 4.4.3
  • Operating System: Windows 10
  • Database: MySQL
  • Node Version: 16.15.1
  • NPM Version: 8.11.0
  • Yarn Version: 1.22.15

I want to change the text inside login page with my custom text. I make some changes on node_modules/@strapi/admin/src/pages/AuthPage/components/Login/BaseLogin.js

Before editing that file, I install patch-package dependencies into my project. Inside project package.json file I added "postinstall": "patch-package" too.

After make some changes on file, I run this command yarn patch-package @strapi/admin

After finished I saw there are patches folder created and inside that folder I can saw the file which have diff code.

But, when I re run the strapi admin frontend, on login page text which I already changed still display original text from strapi.

Is there any mistakes I made on the steps ?

I used strapi version 4.4.3

Thanks before.


1 Like

Did you find a solution yet?

1 Like