Apply patches

How to apply patches in your Vactory project


What is a patch ?

A patch typically refers to a small update or fix applied to the code.

How to apply a patch ?

Vactory utilizes Patch Package to apply patches to the required dependencies. Once the patches are created, they are relocated to the ./patches folder.

In the package.json file, the scripts section includes a postinstall script that executes the command patch-package after the installation of dependencies.

This script is automatically triggered once the installation process is complete.

The patch-package command is likely used to apply any necessary patches or modifications to the installed dependencies.

./package.json

"scripts": {
"postinstall": "patch-package"
},

Current Vactory Next patches

  • svg-spreact+1.3.0.patch : This patch is used to fix fill bug in our svg icons.

  • next+13.1.6.patch : Next.js 13.1.6 patch to remove uncessery props that comes with __NEXT_DATA__ to improve performance.