> For the complete documentation index, see [llms.txt](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nghiaxchis.gitbook.io/ncmaz-nextjs-headless-cms-wordpres-blog-magazine/domains-and-hosting.md).

# Domains and hosting?

{% hint style="info" %}
🔥 If you are not a technical user/developer, I recommend using [Vercel](https://vercel.com/). Now you only need WordPress and [Vercel](https://vercel.com/). Vercel will provide you with hosting and a free domain included. You can deploy your Next.js website with Vercel in a few clicks.
{% endhint %}

### Do I need 2 hosting and 2 domains to host my website?

Certainly, in the context of a Next.js website with a headless WordPress setup, you will typically need two separate hosting environments and two domain names to host your website effectively:

1. **Front-end Next.js**: This is the user interface portion of your website, built using Next.js. The front-end will be hosted on one server (hosting environment) and may use a dedicated domain name.
2. **Back-end WordPress**: WordPress serves as a content management system (CMS) and provides the API for your website's data. WordPress will be hosted on a different server (hosting environment) and may use a separate domain name.

So, you will need:

* **Hosting for the front-end Next.js**: This is where you will store the source code and files for your Next.js website. You can use a hosting service or a virtual server to deploy Next.js. You will configure your own domain name for the front-end. \
  \
  🌟 If you have no idea about this hosting, I recommend using Vercel, it will be great for your start - <https://vercel.com/><br>
* **Hosting for the back-end WordPress**: WordPress will be hosted on a separate server. This could be the same server with your WordPress installation or a dedicated server for your WordPress project. You will also configure your domain name for the back-end.
