# Update theme?

### 1 - Check the change log:

**You can see your website consists of 3 main parts:**

1. The **Ncmaz-faust-core** plugin
2. Other 3rd party **plugins** (WPgraphql, Faust, ACF, etc.)
3. The frontend site is a Nextjs project: **Ncmaz-faust**

As you can see in the download package from Themeforest you will get the **ncmaz-faust-core.zip** plugin file, and the **Ncmaz-faust** folder is the Nextjs project for the frontend.&#x20;

So you only need to care to update those two things for your website every time you receive a notification that a new [update has been released](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/change-log/change-log).&#x20;

However, new updates do not always include updates to both of those things. Sometimes in the new update, there are only updates about the NextJS project for the frontend (**Ncmaz-faust**), sometimes in the new update there are only updates about the **ncmaz-faust-core** plugin for WordPress. So you need to preview the [change log](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/change-log/change-log) to know which parts need to be updated, I'll make it clear in the [change log](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/change-log/change-log) and you'll be able to easily tell.

### 2 - So here's how to update:

1. If you need to update the **ncmaz-faust-core** plugin: \
   \
   Check the **ncmaz-faust-core.zip** plugin file located inside the wp-plugin folder of your download. Then upload it to your WordPress and update the replacement for the current Ncmaz-faust-core plugin in your WordPress. :ok\_hand:<br>

   <figure><img src="https://1497096588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdrDDvIKPQvgLvQ5xJBSo%2Fuploads%2FgIaXUgWLKcJRVCqxuruE%2FScreenshot%202023-12-01%20at%2009.28.57.png?alt=media&#x26;token=7775eca2-1ad9-4d60-95f1-86bc5606fc76" alt=""><figcaption><p><br></p></figcaption></figure>
2. If you need to update the NextJs **Ncmaz-faust** project for the frontend site:<br>

   1. Check to see if there are any additional environment variables in the new update. You can also find all the necessary environmental variables in the `.env.local.example` file and compare them in your project. If so add it to your project settings. - [Vercel Environment Variables](https://vercel.com/docs/projects/environment-variables)
   2. Note that in the new update, the `site-settings.json` file may have many changes. You should merge your old `site-settings.json` file into the new `site-settings.json` file included in the update.
   3. If possible, you should test it on localhost to check for sure before deploying to hosting (use your environment variables and check [this documentation](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/development-on-localhost/run-on-localhost))
   4. Then just **redeploy** to your hosting frontend ([please check this documentation](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/getting-started-setup/step-5.-deploying-the-ncmaz-faust-to-vercel)).

   <br>
