| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/build/ |
Upload File : |
import { Route } from "../routing/pages-router.js";
import { AppRoute } from "../routing/app-route-graph.js";
import { ResolvedNextConfig } from "../config/next-config.js";
//#region src/build/static-export.d.ts
type StaticExportOptions = {
/**
* Absolute path to the pre-built Pages Router server bundle
* (e.g. `dist/server/entry.js`).
*/
pagesBundlePath: string; /** Discovered page routes (excludes API routes) */
routes: Route[]; /** Discovered API routes */
apiRoutes: Route[]; /** Pages directory path */
pagesDir: string; /** Output directory for static files */
outDir: string; /** Resolved next.config.js */
config: ResolvedNextConfig;
};
type StaticExportResult = {
/** Number of HTML files generated */pageCount: number; /** Generated file paths (relative to outDir) */
files: string[]; /** Warnings encountered */
warnings: string[]; /** Errors encountered (non-fatal, specific pages) */
errors: Array<{
route: string;
error: string;
}>;
};
/**
* Run static export for Pages Router.
*
* Delegates to `prerenderPages()` in export mode.
*/
declare function staticExportPages(options: StaticExportOptions): Promise<StaticExportResult>;
type AppStaticExportOptions = {
/** Discovered app routes */routes: AppRoute[];
/**
* Absolute path to the pre-built RSC handler bundle
* (e.g. `dist/server/index.js`).
*/
rscBundlePath: string; /** Output directory */
outDir: string; /** Resolved next.config.js */
config: ResolvedNextConfig;
};
/**
* Run static export for App Router.
*
* Delegates to `prerenderApp()` in export mode.
*/
declare function staticExportApp(options: AppStaticExportOptions): Promise<StaticExportResult>;
//#endregion
export { AppStaticExportOptions, StaticExportOptions, StaticExportResult, staticExportApp, staticExportPages };
//# sourceMappingURL=static-export.d.ts.map