deploy-landing

Deploy a Next.js landing page to a VPS via SSH and rsync.

Updated Jun 6, 2026
One-click install
npx skills add https://github.com/TopengDev/pi-setup --skill deploy-landing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-landing
Source: https://github.com/TopengDev/pi-setup/tree/main/skills/deploy-landing
Command: npx skills add https://github.com/TopengDev/pi-setup --skill deploy-landing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sshpass, nginx, certbot, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the deployment of a Next.js landing page to a VPS, ensuring a smooth and consistent deployment process for websites.

Core Features & Use Cases

  • Automated Deployment: Simplifies the process of deploying a Next.js landing page.
  • Domain Matching: Ensures only valid subdomains can be deployed.
  • Nginx Configuration: Manages Nginx configurations for hosting the landing page.
  • SSL Certificate: Obtains and sets up SSL certificates for secure hosting.

Quick Start

Deploy a new Next.js landing page at 'sunny-ocean-landing-page.example.com' using the local build directory './out'.

Frequently Asked Questions about deploy-landing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Next.js landing page to a VPS using Nginx?

To deploy a Next.js landing page to a VPS, this Skill automates bash scripts to transfer files via SSH and rsync, configures Nginx for hosting, and manages Node.js processes with PM2. It validates subdomains and sets up SSL certificates for secure hosting.

How does SSL certificate setup work for a Next.js subdomain deployment?

SSL certificate setup for a Next.js subdomain deployment is handled automatically using certbot. The Skill validates the subdomain name to ensure it matches correctly before obtaining and setting up SSL certificates for secure hosting.

Do I need sshpass and PM2 installed to automate Next.js deployment?

Yes, you need sshpass and PM2 installed for Next.js deployment automation. sshpass facilitates secure SSH file transfers, while PM2 manages the Node.js processes required to keep your Next.js landing page running on the VPS.

Can I deploy a Next.js static export from a local build directory to my VPS?

Yes, you can deploy a Next.js static export from a local build directory like './out' to your VPS. The Skill uses rsync to securely transfer the local build files to the server and configures Nginx to serve them.

What is the best way to configure Nginx for a Next.js landing page on a VPS?

The best way to configure Nginx for a Next.js landing page on a VPS is through automated bash scripts. This approach manages the Nginx configurations for hosting the landing page and ensures proper deployment alongside SSL setup.