{"record":{"id":"b984985b36ab9655","repo":"vercel/next.js","slug":"next-start-does-not-work-with-output-export-c","errorCode":null,"errorMessage":"\"next start\" does not work with \"output: export\" configuration. Use \"npx serve@latest out\" instead.","messagePattern":"\"next start\" does not work with \"output: export\" configuration\\. Use \"npx serve@latest out\" instead\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/next.ts","lineNumber":388,"sourceCode":"        // from next.config.js\n      }\n    }\n\n    return config\n  }\n\n  private async getServer() {\n    if (!this.serverPromise) {\n      this.serverPromise = this[SYMBOL_LOAD_CONFIG]().then(async (conf) => {\n        if (!this.options.dev) {\n          if (conf.output === 'standalone') {\n            if (!process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {\n              log.warn(\n                `\"next start\" does not work with \"output: standalone\" configuration. Use \"node .next/standalone/server.js\" instead.`\n              )\n            }\n          } else if (conf.output === 'export') {\n            throw new Error(\n              `\"next start\" does not work with \"output: export\" configuration. Use \"npx serve@latest out\" instead.`\n            )\n          }\n        }\n\n        this.server = await this.createServer({\n          ...this.options,\n          conf,\n        })\n        if (this.preparedAssetPrefix) {\n          this.server.setAssetPrefix(this.preparedAssetPrefix)\n        }\n        return this.server\n      })\n    }\n    return this.serverPromise\n  }\n","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/server/next.ts#L370-L406","documentation":"Mode check in NextServer.getServer for a production start: the loaded config has output: 'export', which produces static files in out/ with no Node server. next start cannot serve that output, so it refuses and points at a static file server instead; the standalone variant gets a parallel warning.","triggerScenarios":"next start is run against an output: export build.","commonSituations":"Serving a static export with next start instead of a static file server.","solutions":["Serve the out/ directory with a static server (e.g. npx serve@latest out) instead of next start."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}