MCPcopy
hub / github.com/vercel/next.js / nextExport

Function nextExport

packages/next/src/cli/next-export.ts:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { error } from '../build/output/log'
3
4const nextExport = () => {
5 error(`
6 \`next export\` has been removed in favor of 'output: export' in next.config.js.\nLearn more: ${cyan(
7 'https://nextjs.org/docs/app/building-your-application/deploying/static-exports'
8 )}
9 `)
10
11 process.exit(1)
12}
13
14export { nextExport }

Callers

nothing calls this directly

Calls 2

errorFunction · 0.50
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…