Edgio 7.13 Build deployment issue with NextJs 14(Pages Router)

I am trying to upload the build of a sample project created using create-next-app. Below are my steps to set up a project and upload a build

npx create-next-app@14 (it will ask you to select pages/app router)
cd next-demo
edgio init --edgioVersion latest
edgio deploy

Build deployment is failed and the below error is return

Below is my node and Edgio version
node v18.17.0
edgio -7.13.13

Here is package.json

{
  "scripts": {
    "edgio:dev": "edgio dev",
    "edgio:build": "edgio build",
    "edgio:deploy": "edgio deploy",
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "name": "next-demo",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "next": "14.2.18",
    "react": "^18",
    "react-dom": "^18"
  },
  "devDependencies": {
    "@edgio/cli": "^7.13.13",
    "@edgio/core": "^7.13.13",
    "@edgio/devtools": "^7.13.13",
    "@edgio/next": "^7.13.13",
    "@edgio/prefetch": "^7.13.13",
    "@edgio/react": "^7.13.13"
  }
}

Based on the information provided in the Edgio documentation, it seems that the build deployment failed when trying to deploy a Next.js application using the Edgio CLI. The error screenshot and details are not visible in the context, but I can provide some general troubleshooting steps that might help resolve common deployment issues:

  1. Check Node.js and Next.js Versions: Ensure that the versions of Node.js and Next.js you are using are compatible with the Edgio platform. According to the documentation, Edgio supports Next.js versions 9.x to 13.x with Node.js version 16.x, and Next.js version 14.x with Node.js versions 18.x and 20.x. Since you are using Node.js v18.17.0, it should be compatible with your Next.js version 14.2.18.

  2. Edgio CLI Version: Verify that you are using the latest version of the Edgio CLI. You can update the Edgio CLI to the latest version using npm i -g @edgio/cli@latest.

  3. Check edgio.config.js: Ensure that the edgio.config.js file is properly configured. This file contains various configuration options for Edgio, and any misconfiguration could lead to deployment issues.

  4. Review Application Code: Sometimes, the issue might be with the application code itself. Check for any syntax errors, missing dependencies, or other issues that could prevent the build from succeeding.

  5. Edgio Documentation: Refer to the Edgio documentation for any specific instructions or requirements for deploying Next.js applications. There might be additional steps or configurations needed that are outlined in the documentation.

  6. Edgio Support: If the issue persists, consider reaching out to Edgio support for assistance. They may be able to provide more specific guidance based on the error message and logs.

Since the error details are not provided, these are general suggestions. For more accurate troubleshooting, you would need to refer to the error message and logs generated during the deployment process.

References:


Edgio Answers may provide inaccurate information and should be verified. Consult our official documentation for more information.