How to Deploy a Next JS App on IPFS (InterPlanetary File System) and automate using Fleek

Amlan Chakladar
7 min readJun 6, 2024

Introduction

In todays’ AI era, where running a model for inference on GPU is a costly affair, it becomes important to find cost effective alternatives to at least deploy the app frontends. One such alternative I came across is IPFS. It provides you the decentralized storage flavor to your application at a fraction of cost. And when it comes to deploying web applications, its always better if we can automate the process.

In this post I will walkthrough the process of automating the deployment of a NextJS frontend to IPFS using Fleek. The code for the app can be found here

Prerequisites

To be able to follow along with the post, there are few prerequisites that you need to have.

  • NodeJS installed on your system. You can download it from [here](https://nodejs.org/en/download/).
  • A free Fleek account. You can create one here

--

--

Amlan Chakladar

Cloud architect and DevOps engineer. Love to code and develop new stuff. A nerd by nature.