DEV Community

Željko Šević
Željko Šević

Posted on • Originally published at sevic.dev on

1

Deploying Next.js apps to Netlify

This post covers the main notes for deploying to Netlify and domain setup.

Prerequisites

  • Next.js app bootstrapped

Deployment

Add a new site, import the Git repository, set up environment variables, and trigger the deployment.

The deployed project will be available at the <PROJECT_NAME>.netlify.app URL.

The deployment happens every time new changes are pushed to the production branch.

Preview will be available for every pull request commit.

DNS setup

A purchased domain is needed. You can buy it at Namecheap website.

Add a domain at the Site settings → Domain management → Domains page.

Go to Account → Dashboard → Manage → Advanced DNS page for the purchased domain on the Namecheap website. Create two records

  • A record with @ host to point to Netlify server IP address with the specified value (75.2.60.5)
  • CNAME record with www host to point to Netlify load balancer with the specified value (apex-loadbalancer.netlify.com)

It might take some time for the changes to apply.

Course

Build your SaaS in 2 weeks - Start Now

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more