Deploy Next.js App on Seenode | Next.js Hosting & Deployment Guide
This guide explains how to deploy your existing Next.js application to seenode.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- A seenode account at cloud.seenode.com
- Git configured on your machine
- Existing Next.js project ready to deploy (App Router or Pages Router)
- Node.js 18+ locally
Configure for seenode Deployment
Section titled “Configure for seenode Deployment”Port Configuration
Section titled “Port Configuration”Your service must listen on the port configured for the web service. We recommend defaulting to 80
if PORT
is not provided. Update your package.json
start script to respect PORT
and otherwise use 80
:
{ "scripts": { "dev": "next dev --turbopack", "build": "next build --turbopack", "start": "sh -c \"next start -p ${PORT:-80}\"" }}
Recommended Project Basics
Section titled “Recommended Project Basics”- Place your App Router files under
src/app/
(e.g.,src/app/page.tsx
andsrc/app/layout.tsx
). - API routes can live under
src/app/api/*
. - Ensure your app builds locally with Turbopack or the default builder.
Directory/your-nextjs-app
- package.json
- next.config.js
Directorypublic/
- …
Directorysrc/
Directoryapp/
- layout.tsx
- page.tsx
Directoryapi/
- hello/route.ts
- .gitignore
Deploy on seenode
Section titled “Deploy on seenode”-
Push to Git
Commit your project and push it to GitHub or GitLab.
-
Create a Web Service
From the seenode Dashboard, create a new Web Service and connect your Next.js repository.
-
Configure Build & Start
seenode will detect a Node.js project. Configure:
- Build Command: npm ci && npm run build
- Start Command: npm start
- Build Command:
-
Choose Pricing Tier
Select your preferred instance size and create your service.
-
Deploy
Click Create Web Service and watch logs until your web service is live.
-
Success
Once complete, your Next.js application will be accessible via your service’s URL.
Starting from Scratch?
Section titled “Starting from Scratch?”If you don’t have a Next.js project yet:
Option 1: Use our Template (Recommended)
Next.js Web Service Template
Deploy a minimal Next.js web service with sensible defaults for seenode.Option 2: Create from Next.js Docs + seenode Setup
Follow the official Next.js documentation to create a new project, then return here for seenode-specific steps.
seenode-Specific Setup Steps:
- Ensure
package.json
hasbuild
andstart
as shown above. - Use
next start -p ${PORT:-80}
for production. - Push to your Git provider and create a Web Service in seenode.
Next Steps
Section titled “Next Steps”Connect to a Database
Add PostgreSQL or MySQL for dynamic web services with server-side features