René's URL Explorer Experiment


Title: How to Deploy a Next.js App on cPanel

Open Graph Title: How to Deploy a Next.js App on cPanel

X Title: How to Deploy a Next.js App on cPanel

Description: 🚀 How to Deploy a Next.js App on cPanel (A Beginner-Friendly Guide) Hey friend! 👋You've built your awesome Next.js app and now you're ready to show it off to the world. But… you're on cPanel hosting and not sure what to do next? No worries—I’ll wal...

Open Graph Description: 🚀 How to Deploy a Next.js App on cPanel (A Beginner-Friendly Guide) Hey friend! 👋You've built your awesome Next.js app and now you're ready to show it off to the world. But… you're on cPanel hosting and not sure what to do next? No worries—I’ll wal...

X Description: 🚀 How to Deploy a Next.js App on cPanel (A Beginner-Friendly Guide) Hey friend! 👋You've built your awesome Next.js app and now you're ready to show it off to the world. But… you're on cPanel hosting and not sure what to do next? No worries—I’ll wal...

Opengraph URL: https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel

direct link

Domain: notes.sohag.pro


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Article","url":"https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel","mainEntityOfPage":"https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel","headline":"How to Deploy a Next.js App on cPanel","description":"🚀 How to Deploy a Next.js App on cPanel (A Beginner-Friendly Guide)\nHey friend! 👋You've built your awesome Next.js app and now you're ready to show it off to the world. But… you're on cPanel hosting and not sure what to do next?\nNo worries—I’ll wal...","author":{"@type":"Person","name":"Sohag Hasan","url":"https://hashnode.com/@sohag","image":"https://cdn.hashnode.com/res/hashnode/image/upload/v1729891223368/6e5705b2-a0a1-4892-b0ad-0212251dc6ee.jpeg?w=500&h=500&fit=crop&crop=entropy&auto=compress,format&format=webp","sameAs":"https://x.com/sohag_pro"},"publisher":{"@type":"Organization","name":"Sohag's Notes","url":"https://notes.sohag.pro"},"datePublished":"2025-05-05T11:26:38.407Z","image":{"@type":"ImageObject","url":"https://cdn.hashnode.com/res/hashnode/image/upload/v1746444332746/9117f925-bab5-4131-bb12-e3b9a03f18c8.png"},"keywords":"Next.js, cpanel"}

og:site_nameSohag's Notes
og:imagehttps://cdn.hashnode.com/res/hashnode/image/upload/v1746444332746/9117f925-bab5-4131-bb12-e3b9a03f18c8.png
og:image:width1200
og:image:height630
og:typearticle
article:published_time2025-05-05T11:26:38.407Z
article:authorhttps://notes.sohag.pro/@sohag
twitter:cardsummary_large_image
twitter:creatorhttps://twitter.com/sohag_pro
twitter:imagehttps://cdn.hashnode.com/res/hashnode/image/upload/v1746444332746/9117f925-bab5-4131-bb12-e3b9a03f18c8.png

Links:

Skip to main contenthttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#main-content
Hashnodehttps://hashnode.com/?utm_source=https%3A%2F%2Fnotes.sohag.pro&utm_medium=referral&utm_campaign=blog_header_logo&utm_content=logo
Sohag's Noteshttps://notes.sohag.pro/
Hashnodehttps://hashnode.com/?utm_source=https%3A%2F%2Fnotes.sohag.pro&utm_medium=referral&utm_campaign=blog_header_logo&utm_content=logo
Sohag's Noteshttps://notes.sohag.pro/
WhoAmIhttps://notes.sohag.pro/page/author
Tips & Trickshttps://notes.sohag.pro/series/tips-and-tricks
Principleshttps://notes.sohag.pro/series/principles
Writehttps://hashnode.com
View as Markdownhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel.md
Shttps://hashnode.com/@sohag
Sohag Hasanhttps://hashnode.com/@sohag
https://twitter.com/sohag_pro
https://www.linkedin.com/in/sohag-pro/
notes.sohag.pro/authorhttps://notes.sohag.pro/author
Part of seriesDevOpshttps://notes.sohag.pro/series/devops
🚀 How to Deploy a Next.js App on cPanel (A Beginner-Friendly Guide)https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-how-to-deploy-a-nextjs-app-on-cpanel-a-beginner-friendly-guide
🧰 What You’ll Need Firsthttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-what-youll-need-first
⚠️ A Quick Note About npm vs yarnhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-a-quick-note-about-npm-vs-yarn
🟢 If you used npm to create your project, keep using npm.https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-if-you-used-npm-to-create-your-project-keep-using-npm
🔵 If you used yarn to create your project, stick with yarn.https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-if-you-used-yarn-to-create-your-project-stick-with-yarn
🛠 Step 1: Create a Custom Server Filehttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-1-create-a-custom-server-file
➕ In your project root, create a new file manually named server.js or from the terminal using the below command:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-in-your-project-root-create-a-new-file-manually-named-serverjs-or-from-the-terminal-using-the-below-command
🧾 Step 2: Update Your package.jsonhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-2-update-your-packagejson
🧱 Step 3: Build Your Apphttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-3-build-your-app
👉 If you’re using npm, run:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-if-youre-using-npm-run
👉 If you’re using yarn, run:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-if-youre-using-yarn-run
📦 Step 4: Zip Your App for Uploadhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-4-zip-your-app-for-upload
✅ Select all project files except:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-select-all-project-files-except
📁 Then compress everything into a .zip file.https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-then-compress-everything-into-a-zip-file
📂 Step 5: Upload and Extract on cPanelhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-5-upload-and-extract-on-cpanel
⚙️ Step 6: Set Up the Node.js App in cPanelhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-6-set-up-the-nodejs-app-in-cpanel
Fill in the following:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-fill-in-the-following
📥 Step 7: Install Project Dependencieshttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-7-install-project-dependencies
👉 Option 1: Use the cPanel GUIhttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-option-1-use-the-cpanel-gui
👉 Option 2: Use SSH (for Yarn users or advanced installs)https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-option-2-use-ssh-for-yarn-users-or-advanced-installs
For npm users:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-for-npm-users
For yarn users:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-for-yarn-users
🎉 Step 8: You’re Live!https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-step-8-youre-live
🧠 Final Thoughtshttps://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-final-thoughts
🔁 Quick Recap:https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-quick-recap
💬 Got Questions?https://notes.sohag.pro/deploy-a-nextjs-app-on-cpanel#heading-got-questions
https://medium.com/@geevadon/how-to-deploy-a-next-js-app-on-cpanel-efficiently-c00c5eb860dehttps://medium.com/@geevadon/how-to-deploy-a-next-js-app-on-cpanel-efficiently-c00c5eb860de
#nextjshttps://notes.sohag.pro/tag/nextjs
#cpanelhttps://notes.sohag.pro/tag/cpanel
Join the discussionhttps://hashnode.com/posts/deploy-a-nextjs-app-on-cpanel/6818a06e905e610dca8d6d0f
Mhttps://hashnode.com/@masudrana
Masud Ranahttps://hashnode.com/@masudrana
DevOpshttps://notes.sohag.pro/series/devops
Up nextBuilding Your Cloud Home: A Step-by-Step Guide to AWS VPC ArchitectureA Step-by-Step Guide to AWS VPC Architecture What We're Building Today Imagine being able to build your own digital neighborhood, complete with public areas, private spaces, and secure entrances - all perfectly organized for safety, efficiency, and g...https://notes.sohag.pro/aws-vpc-architecture
Big Problem With Your List: You Ain't on ItI had a solid list of reasons my life wasn't moving faster, until a grainy old lecture pointed out the one name missing from itJul 22, 2026·8 min read·1https://notes.sohag.pro/big-problem-with-your-list-you-aint-on-it
I Built a Production Go Payment Ledger in 14 Weeks. Here's What I'd Do Differently.The finale isn't a victory lap. It's the story of the control I shipped that did nothing, the footgun still sitting in my demo, and the handful of things I'd keep exactly as they are.Jul 14, 2026·11 min read·11https://notes.sohag.pro/what-id-do-differently
Approval Workflows and an Outbox Event Stream in Go: Eventing Without KafkaHow do you hold a large payment for a second pair of eyes without ever letting the unapproved money touch a balance, and how do you stream that decision to the outside world without standing up a broker?Jul 13, 2026·11 min read·5https://notes.sohag.pro/approval-workflows-and-event-stream
Nested Accounts in a Go Ledger: Rolling Up Balances Without Storing OneHow do you show the total under a parent account when the whole system refuses to store a balance? A recursive query, a trigger that refuses to draw a circle, and a rule about what actually has to sum to zero.Jul 12, 2026·7 min read·3https://notes.sohag.pro/account-hierarchy-and-rolled-up-reporting
The Exchange Rate Was Hiding in an Environment VariableEvery time I wanted to change an FX rate I had to edit a file on the server and restart the app. So I moved rates and markup into a live admin API, and then audited it hard enough to find the bug that quietly undid the whole thing.Jul 12, 2026·9 min read·3https://notes.sohag.pro/fx-rates-as-live-admin-config
https://twitter.com/sohag_pro
https://github.com/sohag-pro
https://www.linkedin.com/in/sohag-pro/
https://www.facebook.com/shuvo575
https://sohag.pro/
https://hashnode.com/@sohag
sohag.prohttps://sohag.pro
Membershttps://notes.sohag.pro/members
Archivehttps://notes.sohag.pro/archive
Privacyhttps://hashnode.com/privacy-policy
Termshttps://hashnode.com/terms
Sitemaphttps://notes.sohag.pro/sitemap.xml
RSShttps://notes.sohag.pro/rss.xml
https://hashnode.com/?utm_source=https%3A%2F%2Fnotes.sohag.pro&utm_medium=referral&utm_campaign=blog_footer_logo&utm_content=logo

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.