403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/vinext/dist/build/static-export.js
import { prerenderApp, prerenderPages } from "./prerender.js";
//#region src/build/static-export.ts
/**
* Convert a `PrerenderResult` into the legacy `StaticExportResult` shape.
*/
function toStaticExportResult(routes) {
	const result = {
		pageCount: 0,
		files: [],
		warnings: [],
		errors: []
	};
	for (const r of routes) if (r.status === "rendered") {
		result.pageCount++;
		result.files.push(...r.outputFiles.filter((f) => f.endsWith(".html")));
	} else if (r.status === "skipped") {
		if (r.reason === "api") result.warnings.push(`API route ${r.route} skipped — API routes are not supported with output: 'export'`);
	} else if (r.status === "error") result.errors.push({
		route: r.route,
		error: r.error
	});
	return result;
}
/**
* Run static export for Pages Router.
*
* Delegates to `prerenderPages()` in export mode.
*/
async function staticExportPages(options) {
	return toStaticExportResult((await prerenderPages({
		mode: "export",
		pagesBundlePath: options.pagesBundlePath,
		routes: options.routes,
		apiRoutes: options.apiRoutes,
		pagesDir: options.pagesDir,
		outDir: options.outDir,
		config: options.config
	})).routes);
}
/**
* Run static export for App Router.
*
* Delegates to `prerenderApp()` in export mode.
*/
async function staticExportApp(options) {
	return toStaticExportResult((await prerenderApp({
		mode: "export",
		rscBundlePath: options.rscBundlePath,
		routes: options.routes,
		outDir: options.outDir,
		config: options.config
	})).routes);
}
//#endregion
export { staticExportApp, staticExportPages };

//# sourceMappingURL=static-export.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit