Next.js Discord

Discord Forum

need explanation of "out" folder

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
is static pages only get saved in out folder ? then what about dynamic pages where it got saved ?
when I am running build command new files is not getting generated !

11 Replies

Barbary LionOP
which folder to be deployed out folder or .next folder?
if didn't add the output key in next.config.ts then you will deploy .next folder
if you added output:'export' in next config, then you deploy the out folder
Barbary LionOP
i have removed output:'export'
i am not using output:'export' for static pages
yeah then you need to deploy .next
Barbary LionOP
working on it
Barbary LionOP
is there any documentation for this ?
Barbary LionOP
.next doesnot have index.html and without index.html firebase is not deploying
@Barbary Lion .next doesnot have index.html and without index.html firebase is not deploying
.next folder is when you deploy to something like vercel where you use full features of nextjs. To get the index.html to deploy on firebase, you need to set the output to export in next config and it will create out folder but then few features won't work