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
- Go to the Next.js Egg download page.
- Download the
.json
egg file to your local machine. - Keep it ready for import in your panel.
Step 2: Import the Egg into Your Panel
-
Log in to your Pelican Admin Panel.
-
Navigate to:
http://yourdomain.tld/admin/eggsorhttps://yourdomain.tld/admin/eggsdepending on your setup.
-
Click on “Add New Egg” or “Import Egg”.
-
Upload the same
.json
file from the download. -
Confirm and configure it as needed.
Step 3: Create a Server with the Egg
- Go to your Server Creation page.
- Choose the Nest and Egg corresponding to the Next.js template.
- Fill in the required details like server name, resources, and startup options.
- Deploy the server.
Step 4: Upload Your Next.js Application
- Upload your Next.js project files to the server using SFTP or the built-in file manager.
- 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.