---
title: "Discussion on \"How to Deploy a Next.js Application to a VPS Using NGINX and PM2\" | Hashnode"
description: "Discussion on \"How to Deploy a Next.js Application to a VPS Using NGINX and PM2\". In this guide we'll go through deploying and self-hosting a Next.js application using Pages Router to a VPS with NGINX and PM2."
url: "https://hashnode.com/posts/how-to-deploy-a-nextjs-application-to-a-vps-using-nginx-and-pm2/65e2dc871eadc2b75df7b4ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Deploy a Next.js Application to a VPS Using NGINX and PM2](https://yamanidev.hashnode.dev/how-to-deploy-a-nextjs-application-to-a-vps-using-nginx-and-pm2?utm_source=hashnode&utm_medium=feed)

In this guide we'll go through deploying and self-hosting a Next.js application using Pages Router to a VPS with NGINX and PM2.

Mar 2, 2024 · 10 min read · yamanidev.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#deployment](https://hashnode.com/tag/deployment)
-   [#vps](https://hashnode.com/tag/vps)
-   [#self-hosted](https://hashnode.com/tag/self-hosted)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#infrastructure](https://hashnode.com/tag/infrastructure)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#web-servers](https://hashnode.com/tag/web-servers)
-   [#reverse-proxy](https://hashnode.com/tag/reverse-proxy)
-   [#pm2](https://hashnode.com/tag/pm2)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Mohamed Yamani](https://hashnode.com/@yamanidev)

@yamanidev · ~/

  
[View profile](https://hashnode.com/@yamanidev)

Software Engineer - I build web experiences and write about it online.

Front end Software Engineer - I build web experiences and write about it online.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
