Skip to content

Next.js Egg

Next.js Egg Installation Guide

Prerequisites

Before you begin, ensure you have the following:

  • A working installation of Pelican.
  • Admin access to the panel’s admin area where you can import eggs.

Step 1: Download the Next.js Egg

  1. Go to the Next.js Egg download page.
  2. Download the .json egg file to your local machine.
  3. Keep it ready for import in your panel.

Step 2: Import the Egg into Your Panel

  1. Log in to your Pelican Admin Panel.

  2. Navigate to:

    http://yourdomain.tld/admin/eggs
    or
    https://yourdomain.tld/admin/eggs

    depending on your setup.

  3. Click on “Add New Egg” or “Import Egg”.

  4. Upload the same .json file from the download.

  5. Confirm and configure it as needed.

Step 3: Create a Server with the Egg

  1. Go to your Server Creation page.
  2. Choose the Nest and Egg corresponding to the Next.js template.
  3. Fill in the required details like server name, resources, and startup options.
  4. Deploy the server.

Step 4: Upload Your Next.js Application

  1. Upload your Next.js project files to the server using SFTP or the built-in file manager.
  2. Make sure package.json and other required files are in the root directory.

Step 5: Start the Server

  • Use the panel’s console or startup command to run the application.
  • If the Egg is set up with PM2, it will handle process management automatically.

Optional: Configure Domain and SSL (Outside Panel)

To serve your application via a domain with SSL, follow the Next.js VPS Installation Guide for Nginx and Certbot setup.

Additional Resources