| 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/entries/ |
Upload File : |
{"version":3,"file":"app-browser-entry.js","names":[],"sources":["../../src/entries/app-browser-entry.ts"],"sourcesContent":["import { resolveRuntimeEntryModule } from \"./runtime-entry-module.js\";\nimport type { VinextLinkPrefetchRoute } from \"../client/vinext-next-data.js\";\nimport type { AppRoute } from \"../routing/app-router.js\";\n\n/**\n * Generate the virtual browser entry module.\n *\n * This runs in the client (browser). It hydrates the page from the\n * embedded RSC payload and handles client-side navigation by re-fetching\n * RSC streams.\n */\nexport function generateBrowserEntry(routes: readonly AppRoute[] = []): string {\n const entryPath = resolveRuntimeEntryModule(\"app-browser-entry\");\n const prefetchRoutes: VinextLinkPrefetchRoute[] = routes\n .filter((route) => isLinkPrefetchRoute(route))\n .map((route) => ({\n patternParts: [...route.patternParts],\n isDynamic: route.isDynamic,\n }));\n\n return `window.__VINEXT_LINK_PREFETCH_ROUTES__ = ${JSON.stringify(prefetchRoutes)};\nimport ${JSON.stringify(entryPath)};`;\n}\n\nfunction isLinkPrefetchRoute(route: AppRoute): boolean {\n if (route.pagePath !== null) return true;\n return route.routePath === null && route.layouts.length > 0;\n}\n"],"mappings":";;;;;;;;;AAWA,SAAgB,qBAAqB,SAA8B,EAAE,EAAU;CAC7E,MAAM,YAAY,0BAA0B,oBAAoB;CAChE,MAAM,iBAA4C,OAC/C,QAAQ,UAAU,oBAAoB,MAAM,CAAC,CAC7C,KAAK,WAAW;EACf,cAAc,CAAC,GAAG,MAAM,aAAa;EACrC,WAAW,MAAM;EAClB,EAAE;CAEL,OAAO,4CAA4C,KAAK,UAAU,eAAe,CAAC;SAC3E,KAAK,UAAU,UAAU,CAAC;;AAGnC,SAAS,oBAAoB,OAA0B;CACrD,IAAI,MAAM,aAAa,MAAM,OAAO;CACpC,OAAO,MAAM,cAAc,QAAQ,MAAM,QAAQ,SAAS"}