Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      A Week In The Life Of An AI-Augmented Designer

      August 22, 2025

      This week in AI updates: Gemini Code Assist Agent Mode, GitHub’s Agents panel, and more (August 22, 2025)

      August 22, 2025

      Microsoft adds Copilot-powered debugging features for .NET in Visual Studio

      August 21, 2025

      Blackstone portfolio company R Systems Acquires Novigo Solutions, Strengthening its Product Engineering and Full-Stack Agentic-AI Capabilities

      August 21, 2025

      Google Pixel 10 Pro vs. iPhone 16 Pro: I’ve used both handsets, and there’s a clear winner

      August 25, 2025

      Master these 48 Windows keyboard shortcuts and finish work early

      August 25, 2025

      Why the Pixel 10 is making this longtime iPhone user reconsider their next phone

      August 25, 2025

      Google Pixel 10 Pro Fold vs. Samsung Galaxy Z Fold 7: I compared both Androids, and here’s the winner

      August 25, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      PERFIXION 2025: Powering AI Ideas

      August 25, 2025
      Recent

      PERFIXION 2025: Powering AI Ideas

      August 25, 2025

      MongoDB Data Types

      August 23, 2025

      Building Cross-Platform Alerts with Laravel’s Notification Framework

      August 23, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Gears of War returns, Helldivers 2 jumps ship, and Xbox players win big — Xbox’s Aug 25–31 lineup proves the console war is getting interesting again

      August 25, 2025
      Recent

      Gears of War returns, Helldivers 2 jumps ship, and Xbox players win big — Xbox’s Aug 25–31 lineup proves the console war is getting interesting again

      August 25, 2025

      Reports say Windows 11 update is bricking drives — is yours on the list?

      August 25, 2025

      Razer finally remembered I don’t live in China, so now we can all get this cool Gengar gaming headset

      August 25, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Deploy a Next.js Blog on Sevalla

    How to Deploy a Next.js Blog on Sevalla

    July 9, 2025

    In this tutorial, I’ll teach you how to use Next.js and Sevalla to build and deploy your own Next.js blog.

    But first, let me answer your likely question: “Why host a blog yourself when there are hundreds of blogging platforms available? “

    One answer: Next.js.

    Table of Contents

    • What is Next.js?

    • What is Sevalla?

    • Building and Deploying a Next.js Blog

      • Building the blog

      • Deploying the blog

      • Adding a custom domain

    • Conclusion

    What is Next.js?

    Next.js Framework

    Next.js is a web development framework built on top of React. While React is a library for building user interfaces, Next.js adds extra features to make building websites and web applications easier and faster.

    Next.js gives you full control. You own your content, your design, and your SEO strategy. Unlike Medium or Substack, you’re not limited by platform rules or branding. You can optimise every part of your blog, from how fast it loads to how it looks on Google search.

    Next.js isn’t just a tool to build a blog. It’s a platform to build your entire brand. That’s why developers and indie hackers love it.

    What is Sevalla?

    Sevalla is a Platform-as-a-service provider that I have recently fallen in love with. Built by the team behind Kinsta, the popular WordPress hosting platform, Sevalla combines powerful features with a smooth developer experience. They offer application hosting, database, object storage, and static site hosting for your projects.

    Unlike platforms like Heroku, which provide almost all features via additional integrations, Sevalla gives you exactly what you need to build and deploy an app to your users.

    Sevalla Admin Panel

    Imagine if someone took just the essential features from cloud platforms like AWS or Azure and put them into a single, easy-to-use dashboard. That’s exactly what the Sevalla admin panel has. A clean, simple interface with everything you need, and nothing you don’t.

    In a nutshell, Sevalla handles all the heavy lifting of deploying and scaling your app, so you can focus entirely on building it.

    Building and Deploying a Next.js Blog

    Now let’s build and deploy our Next.js blog. We don’t have to build one from scratch – there are many templates available for us to use, like this one.

    We will do three things.

    • Clone the repository and set up the blog on our local machine.

    • Deploy the site to Sevalla

    • Add a custom domain.

    Building the blog

    First, fork the Next.js blog repository.

    Fork Repository

    Once you have forked it, clone it to your local machine.

    Clone repository

    git clone <repository url>
    

    Once you have cloned the repository, go into the directory and run npm install . Make sure you have the latest Node.js and Next.js installed on your machine.

    Now let’s run the blog on our machine. The command is npm run dev . Once the server is running, go to localhost:3000 to view the site.

    Demo Next.js blog

    You should see the above page. Now let’s add our own blog post to it. Go to the content/blog directory. Every page in the content directory is your blog post, and you can use Markdown to style it. Save the file with the extension .mdx

    Add the following text (the first part is the metadata for the blog to understand the title and date of publication):

    ---
    title: "My New Post"
    date: 2025-07-07
    ---
    
    Welcome to my first blog post using Next.js and MDX!
    

    Reload the home page, and you should now see two posts – the default post and your new post.

    New post in Next.js blog

    So every time you want to publish a new article, you create a new page using Markdown. It’s that simple.

    Commit this new file and push it to your repository.

    git add .
    git commit -m "new post"
    git push origin main
    

    Deploying the blog

    Now create an account on Sevalla (use GitHub login so that you don’t have to re-authenticate again).

    Once you log in to Sevalla, you’ll see the Static site option. Click on it to create a static site.

    Like other hosting providers, not all Sevalla products are free, but it comes with generous free credits. Unless you have a reasonable number of users that access your blog, you will not incur any costs for blogs/small projects. But when it comes to static sites, you can host up to 100 sites completely for free.

    Sevalla Dashboard

    Select the repository from the list. Check the “Automatic deploy on commit” option. So every time you push code, Sevalla will automatically deploy your new post to the server.

    Create Static Site

    In the “build settings” page, keep the defaults. Click “Create site”. In a few minutes, the app will be pulled from GitHub, deployed to a server, and you should see the button visit site .

    Deployment success

    If you visit the site, you should see the below page:

    Live blog

    Yay! Your blog is live. You can also see detailed build logs under the “deployments” tab and see if there are any issues deploying your app.

    Sevalla Deployment Logs

    Adding a custom domain

    Great. For the last step, let’s add a custom domain to our blog.

    Go to the “domains” tab, and click “add domain” under custom domains. I’ll be using a subdomain next from my private domain manishshivanandhan.com, but the instructions are the same for root domains as well.

    Add custom domain

    Once you click “add domain”, Sevalla will give you the instructions to add the TXT records for verification and CNAME/A records for pointing the new site to your domain.

    Once these are done on your domain provider, check back after a few minutes.

    Custom Domain Verified

    Hooray! You’ve created your own Next.js blog. Here is the sample site I built for this project – http://next.manishshivanandhan.com

    Conclusion

    And that’s it! Your very own Next.js blog is now live on Sevalla.

    In just a short time, you’ve gone from cloning a template to publishing your first post and deploying it to the world with a custom domain. With Next.js, you get full control over your content and brand, and with Sevalla, deployment becomes effortless and smooth.

    Remember, every time you want to publish a new article, all it takes is creating a simple markdown file and pushing your code. Sevalla handles the rest, so you can focus on what truly matters: writing great content and building your personal brand.

    Hope you enjoyed this article! I’ll be back soon with more tutorials on building with Next.js. Feel free to connect with me on LinkedIn to stay in touch.

    Source: freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleAI shapes autonomous underwater “gliders”
    Next Article How to Vibe Code With Help From n8n

    Related Posts

    Artificial Intelligence

    Scaling Up Reinforcement Learning for Traffic Smoothing: A 100-AV Highway Deployment

    August 25, 2025
    Repurposing Protein Folding Models for Generation with Latent Diffusion
    Artificial Intelligence

    Repurposing Protein Folding Models for Generation with Latent Diffusion

    August 25, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    Microsoft’s Copilot is trying to appeal to the masses — now power users are leaving it behind

    Microsoft’s Copilot is trying to appeal to the masses — now power users are leaving it behind

    News & Updates

    This AI Paper from Alibaba Introduces Lumos-1: A Unified Autoregressive Video Generator Leveraging MM-RoPE and AR-DF for Efficient Spatiotemporal Modeling

    Machine Learning

    CVE-2025-20671 – Thermal Out-of-Bounds Write Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-53313 – Twitch TV Embed Suite CSRF Stored XSS

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2024-9544 – MapSVG WordPress Stored Cross-Site Scripting Vulnerability

    May 22, 2025

    CVE ID : CVE-2024-9544

    Published : May 22, 2025, 10:15 a.m. | 1 hour, 52 minutes ago

    Description : The MapSVG plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 8.6.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file.

    Severity: 6.4 | MEDIUM

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-4030 – “PHPGurukul COVID19 Testing Management System SQL Injection”

    April 28, 2025

    Chrome soon makes it easier to recall your tab groups and run AI Mode from the address bar

    August 15, 2025

    CodeSOD: Unnavigable

    April 7, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.