Next.js static pages lost

Hi there,

Using recommended CLI npx @edgio/cli@latest init --name princewen-com-next-blog-v2 --deploy in this repo but only 404 page could be seen.

The Route(Pages) were:

Route (pages)                              Size     First Load JS
─ ○ /404                                   181 B          77.8 kB
+ First Load JS shared by all              77.6 kB
  ├ chunks/framework-0ff1981415a3154d.js   45 kB
  ├ chunks/main-18a986b8471251f8.js        31.7 kB
  ├ chunks/pages/_app-a3f0dee1d78bc15f.js  195 B
  └ chunks/webpack-4e7214a60fad8e88.js     712 B

How to fix that?

Me ran yarn run prod showed this:

Route (pages)                                   Size     First Load JS
┌ ○ /                                           871 B           108 kB
├   /_app                                       0 B             104 kB
├ ○ /404                                        181 B           104 kB
├ ○ /posts (427 ms)                             1.43 kB         109 kB
├ ○ /posts/hugo-image-lazyload-and-placeholder  3.96 kB         111 kB
├ ○ /posts/potplayer-with-lav-filters           3.9 kB          111 kB
├ ○ /posts/potplayer-with-lav-madvr             3.83 kB         111 kB
├ ○ /posts/utterances-loading                   2.65 kB         110 kB
└ ○ /services                                   1.46 kB         109 kB
+ First Load JS shared by all                   114 kB
  ├ chunks/framework-5429a50ba5373c56.js        45.2 kB
  ├ chunks/main-f69e07f9c4fb556b.js             31.7 kB
  ├ chunks/pages/_app-83cb139183f4b83c.js       25.6 kB
  ├ chunks/webpack-87b3a303122f2f0d.js          1 kB
  └ css/e0aa8f50c4db43f6.css                    10.3 kB

I think the next.config.js created by @Edgio/cli overrode what I set in next.config.mjs.

Looking at the source code for our @edgio/next connector, it appears to require a next.config.js file, not .mjs. I would suggest trying to move your config options to the file edgio init creates and see if that resolves your issue.