Next.js Discord

Discord Forum

Static Export - next build not generation /out folder

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
My next config:
const nextConfig = {
output: 'export',
}
module.exports = nextConfig

Trying to generate a static export to deploy on a nginx server, but next build is not producing any export. Instead it is generating stuff in .next

2 Replies

What version of Next.js are you using?
Older versions(<=13) had a command: next export.

If you are on a newer version whatever you did should generate your static build in a "out" folder