Dynamic pages are not available in nextjs app when i build the app for server upload

387 Views Asked by At

i made an webpage using nextjs (version 13.4.19) app in which i used dynamic routing. It is working fine in local but when i build the app it is not creating dynamic pages. I am sharing folder structure for reference.

enter image description here

here red marked files are of home page and blue marked are index page. I dont get any file for yellow marked file

well maybe this because we cant create dynamic static pages.

so how am i supposed to run this on server...when i run out folder on local also it only shows home page

Help will be appreciated

1

There are 1 best solutions below

2
Fabio Nettis On

It seems like you are using static exports using the output option set to export.

// next.config.js
module.exports = {
  output: 'export',
};

SSR and ISR pages require the Next.js server to be running, this is impossible with a static export. Here is a link to see a complete overview of all unsupported features.