---
title: "Discussion on \"Self-Host NextJS in Fly.io: A Quick Try\" | Hashnode"
description: "Discussion on \"Self-Host NextJS in Fly.io: A Quick Try\". Learn how to self-host a NextJS app on Fly.io using Docker. Quick tutorial with step-by-step deployment instructions. Perfect for simple apps"
url: "https://hashnode.com/posts/self-host-nextjs-in-flyio-a-quick-try/670b71997187f90d1420fb1c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Self-Host NextJS in Fly.io: A Quick Try](https://blog.donvitocodes.com/self-host-nextjs-in-flyio-a-quick-try?utm_source=hashnode&utm_medium=feed)

Learn how to self-host a NextJS app on Fly.io using Docker. Quick tutorial with step-by-step deployment instructions. Perfect for simple apps

Oct 13, 2024 · 8 min read · blog.donvitocodes.com  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#flyio](https://hashnode.com/tag/flyio)

## Written by

[DonvitoCodes](https://hashnode.com/@DonvitoCodes)

@DonvitoCodes · Singapore

  
[View profile](https://hashnode.com/@DonvitoCodes)

Learn AI with me

I decided to take a career break and try out building apps using Generative AI. I am also learning NextJS and developing LaunchStack, starter code which I will use for my web projects

## Responses 2

Markdown supported · ⌘↵ to post

[Soothfy App](https://hashnode.com/@soothfyapp)

[Oct 14, 2024](https://hashnode.com/posts/self-host-nextjs-in-flyio-a-quick-try/670b71997187f90d1420fb1c/comment/670d3298052df2451b3c1360)

This tutorial by Lee Robinson on self-hosting Next.js using Docker and deploying it on Fly.io is a great resource for developers. It illustrates how to set up a Next.js app with API routes, leveraging Docker for seamless deployment. The example includes creating a simple blog page and highlights the necessary configurations in the fly.toml file. However, a notable issue regarding the missing sharp dependency for image optimization is mentioned, which could be a potential hurdle for those looking to utilize all Next.js features.

[Marcus Hohlbein](https://hashnode.com/@marcushohlbein)

[Oct 13, 2024](https://hashnode.com/posts/self-host-nextjs-in-flyio-a-quick-try/670b71997187f90d1420fb1c/comment/670c57e7aa280e1f1f061517)

What’s happening when you try the suggested solution from the next docs? Normally it should be working after you add the sharp dependency 🤔
