Deploy a Next.js app to Shiper

This is a guide on how to deploy a Next.js app to Shiper.

There are some configurations that have to be made in your Next.js app before you can deploy it to Shiper. Make sure to follow the steps below to prepare your app for deployment.

Prepare your Next.js app

Before you can deploy your Next.js app to Shiper, you need to make sure that your app is ready for deployment. You need to change the output option in your next.config.js file to standalone. This will ensure that your app is built as a standalone app that can be deployed to Shiper.

// next.config.js
/** @type {import('next').NextConfig} */
 
const nextConfig = {
  output: 'standalone',
};
 
module.exports = nextConfig;

Create a Shiper Project

If your are logged in to your Shiper account, you can create a new project by clicking on the Add Project button on the dashboard.

Select the Next.js template

When creating a new project, you will be asked to select a deployment method. Select the Next.js template from the dropdown.

Configure your project

In the Advanced Settings section, you can configure your project by setting the Build Command and Start Command. The Build Command is the command that will be used to build your app, and the Start Command is the command that will be used to start your app. You can also specify your Node Version we will yous the latest LTS version by default if nothing else is configured.