@wular/pnext 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/server/_chunks/{aliases-j47a10ce.js → aliases-pycbtjt1.js} +7 -5
  2. package/dist/server/_chunks/{analyze-arswqe6s.js → analyze-4d9e00g9.js} +17 -13
  3. package/dist/server/_chunks/{boot-af0mv3dy.js → boot-bhemypxz.js} +13 -11
  4. package/dist/server/_chunks/{build-spy3dxp4.js → build-c991dv65.js} +7 -5
  5. package/dist/server/_chunks/{build-t9h0hec3.js → build-kh5e3x48.js} +977 -1186
  6. package/dist/server/_chunks/{build-tier-m7yvqz61.js → build-tier-0a96kmx3.js} +59 -75
  7. package/dist/server/_chunks/{compile-53j02j27.js → compile-040r79gj.js} +2 -2
  8. package/dist/server/_chunks/{config-n2z7yxps.js → config-0tvz03a6.js} +6 -4
  9. package/dist/server/_chunks/{config-1yzwexq6.js → config-27rj7830.js} +12 -3
  10. package/dist/server/_chunks/{create-meec9hs6.js → create-9rvwshsp.js} +4 -3
  11. package/dist/server/_chunks/{dev-fjmqg6en.js → dev-ex9exynt.js} +2 -2
  12. package/dist/server/_chunks/{generate-n9sh6hzt.js → generate-myw9hef7.js} +5 -4
  13. package/dist/server/_chunks/{index-91x12ykq.js → index-0r5eqfc7.js} +6 -1
  14. package/dist/server/_chunks/{index-3xbr4eyv.js → index-0yjv5v47.js} +3 -3
  15. package/dist/server/_chunks/{index-ncnes8c6.js → index-11xpbfej.js} +2 -2
  16. package/dist/server/_chunks/{index-357na4a8.js → index-141vcwk6.js} +1 -1
  17. package/dist/server/_chunks/{index-nyrba2kr.js → index-1pzm1hdy.js} +11 -11
  18. package/dist/server/_chunks/{index-fkp000p1.js → index-29pq0kax.js} +2 -2
  19. package/dist/server/_chunks/{index-wpfhfbs4.js → index-38xpdxwd.js} +4 -4
  20. package/dist/server/_chunks/{index-tvqkq6e6.js → index-3e075kny.js} +1 -1
  21. package/dist/server/_chunks/{index-kq8kpzye.js → index-3ycf5ckv.js} +3 -3
  22. package/dist/server/_chunks/{index-20ppawv7.js → index-4da76t62.js} +3 -3
  23. package/dist/server/_chunks/{index-cf4rvxv6.js → index-52k54ykj.js} +1 -1
  24. package/dist/server/_chunks/{index-x93hv0sc.js → index-71885zaq.js} +23 -10
  25. package/dist/server/_chunks/{index-jepjvcrf.js → index-8ct7rqy3.js} +1 -1
  26. package/dist/server/_chunks/{index-sjpckxqn.js → index-9f49w76j.js} +1 -1
  27. package/dist/server/_chunks/{index-4hgjrqh7.js → index-9hz3s0m8.js} +2 -2
  28. package/dist/server/_chunks/{index-9n2914ww.js → index-akkrvjn6.js} +1 -1
  29. package/dist/server/_chunks/{index-9ych9ma8.js → index-b7j671dj.js} +2 -2
  30. package/dist/server/_chunks/index-bzd2ef7t.js +10 -0
  31. package/dist/server/_chunks/{index-p77b4kcx.js → index-cn86z041.js} +1 -1
  32. package/dist/server/_chunks/{index-hkdfj58q.js → index-cvr4z22m.js} +1 -1
  33. package/dist/server/_chunks/{index-y2jr2n72.js → index-d158y67j.js} +4 -4
  34. package/dist/server/_chunks/{index-yz54pxrh.js → index-d1jsmhhk.js} +4 -9
  35. package/dist/server/_chunks/{index-ggk2j965.js → index-dgr390q7.js} +56 -50
  36. package/dist/server/_chunks/{index-sctcgyvv.js → index-drwv61cc.js} +2 -2
  37. package/dist/server/_chunks/{index-9hx2641q.js → index-entm8bmz.js} +1 -1
  38. package/dist/server/_chunks/{index-jx7bqvw1.js → index-evhd413j.js} +1 -1
  39. package/dist/server/_chunks/{index-1011cscr.js → index-fjv96re1.js} +61 -29
  40. package/dist/server/_chunks/{index-c0g2wf3z.js → index-gcmj16xy.js} +1 -1
  41. package/dist/server/_chunks/{index-ytjvpbm2.js → index-gkndxkxf.js} +3 -3
  42. package/dist/server/_chunks/index-hdbwtdv2.js +352 -0
  43. package/dist/server/_chunks/{index-z84ab1w0.js → index-he6n2bvp.js} +3 -3
  44. package/dist/server/_chunks/{index-eajaspjk.js → index-j0m1jxqa.js} +1 -1
  45. package/dist/server/_chunks/{index-4q2gbfwk.js → index-j681c48a.js} +2 -2
  46. package/dist/server/_chunks/index-jbj7ehef.js +50 -0
  47. package/dist/server/_chunks/{index-8k7pfejn.js → index-jn9rbhrx.js} +7 -7
  48. package/dist/server/_chunks/index-jt8e1pje.js +12 -0
  49. package/dist/server/_chunks/{index-eeaanp2e.js → index-kdhxpwyq.js} +3 -3
  50. package/dist/server/_chunks/{index-6e4fqv30.js → index-m63czgq5.js} +2 -0
  51. package/dist/server/_chunks/{index-2dv4y4wd.js → index-n629dy38.js} +16 -10
  52. package/dist/server/_chunks/{index-sv8m6789.js → index-nf3df4jy.js} +5 -5
  53. package/dist/server/_chunks/{index-06nyqntx.js → index-q3r9z8mq.js} +1 -1
  54. package/dist/server/_chunks/{index-3b3at80h.js → index-qcrvt6er.js} +6 -3
  55. package/dist/server/_chunks/{index-egykcqg3.js → index-rgj5mx84.js} +1 -1
  56. package/dist/server/_chunks/{index-vvmmknm1.js → index-rjegyfx4.js} +19 -15
  57. package/dist/server/_chunks/{index-ym67zqxp.js → index-tf4j19ge.js} +1 -1
  58. package/dist/server/_chunks/{index-5gyr4emz.js → index-tq3b39a5.js} +4 -4
  59. package/dist/server/_chunks/{index-qn4z5s3c.js → index-typcbcsv.js} +3 -3
  60. package/dist/server/_chunks/{index-11sfk4hb.js → index-vmr35jjw.js} +1 -1
  61. package/dist/server/_chunks/{index-danncfhy.js → index-wm36rj4v.js} +1 -1
  62. package/dist/server/_chunks/{index-3tf1xjsp.js → index-x2m17v9c.js} +11 -11
  63. package/dist/server/_chunks/{index-z4z9zv3b.js → index-x9c55pzy.js} +141 -3
  64. package/dist/server/_chunks/{index-k1g3epw0.js → index-xh1nbk46.js} +10 -10
  65. package/dist/server/_chunks/{index-0374j2b9.js → index-y4d02znn.js} +1 -1
  66. package/dist/server/_chunks/{index-qm6kmhqs.js → index-y7mzvq2q.js} +1 -1
  67. package/dist/server/_chunks/{index-rn8dyr1f.js → index-yrjkqtfj.js} +8 -48
  68. package/dist/server/_chunks/{index-tq0pc7eg.js → index-zfrwq472.js} +3 -3
  69. package/dist/server/_chunks/{loader-7yw0j98z.js → loader-5en7wpt5.js} +12 -10
  70. package/dist/server/_chunks/{modules-jn8bmbn8.js → modules-t92favpj.js} +14 -12
  71. package/dist/server/_chunks/{pipeline-yy9jhydf.js → pipeline-4t9q43ht.js} +25 -21
  72. package/dist/server/_chunks/{production-jar9ztm3.js → production-385bw8df.js} +14 -3
  73. package/dist/server/_chunks/{proxy-config-j84dgksn.js → proxy-config-60gprphe.js} +7 -5
  74. package/dist/server/_chunks/{proxy-w1d0wmsn.js → proxy-gfhmktbk.js} +12 -10
  75. package/dist/server/_chunks/{router-k1reahfn.js → router-xnrva921.js} +10 -7
  76. package/dist/server/_chunks/{routes-2s277fc6.js → routes-ht868pdc.js} +12 -10
  77. package/dist/server/_chunks/{run-pvd8bs1t.js → run-d40d63ag.js} +5 -4
  78. package/dist/server/_chunks/{server-mt4a994c.js → server-2p8fgqq2.js} +38 -34
  79. package/dist/server/_chunks/{tsconfig-defaults-1nb3308g.js → tsconfig-defaults-bcn34eqb.js} +5 -4
  80. package/dist/server/_chunks/{typegen-0qr0459b.js → typegen-dvtcjtaw.js} +15 -13
  81. package/dist/server/cli/index.js +12 -15
  82. package/dist/server/cli/start.js +35 -14
  83. package/dist/server/compat/next/cache.js +5 -5
  84. package/dist/server/compat/next/config-headers.js +8 -6
  85. package/dist/server/compat/next/config-loader.js +1 -1
  86. package/dist/server/compat/next/dist/server/web/spec-extension/revalidate.js +5 -5
  87. package/dist/server/compat/next/dist/server/web/spec-extension/unstable-cache.js +5 -5
  88. package/dist/server/compat/next/dist/server/web/spec-extension/unstable-no-store.js +5 -5
  89. package/dist/server/compat/next/dynamic.js +3 -14
  90. package/dist/server/compat/next/font/cache.js +6 -4
  91. package/dist/server/compat/next/font/local.js +7 -5
  92. package/dist/server/compat/next/font/runtime.js +7 -5
  93. package/dist/server/compat/next/headers.js +4 -4
  94. package/dist/server/compat/next/image/config.js +2 -2
  95. package/dist/server/compat/next/image/optimizer.js +3 -3
  96. package/dist/server/compat/next/image/static-metadata.js +4 -4
  97. package/dist/server/compat/next/legacy-request-apis.js +3 -3
  98. package/dist/server/compat/next/link-transform.js +4 -3
  99. package/dist/server/compat/next/navigation.js +5 -4
  100. package/dist/server/compat/next/redirects.js +8 -6
  101. package/dist/server/compat/next/resource-hints.js +2 -2
  102. package/dist/server/compat/next/rewrites.js +7 -5
  103. package/dist/server/compat/next/root-params.js +3 -3
  104. package/dist/server/compat/next/route-state.js +2 -2
  105. package/dist/server/compat/next/script.js +2 -2
  106. package/dist/server/compat/next/server.js +5 -5
  107. package/dist/server/generation.json +1 -1
  108. package/package.json +1 -1
  109. package/reference/compat.md +1 -1
  110. package/reference/config.md +2 -2
  111. package/reference/dev.md +1 -1
  112. package/reference/getting-started.md +1 -1
  113. package/reference/rendering.md +4 -4
  114. package/src/api/dynamic.tsx +84 -4
  115. package/src/cli/adapters/vercel-warm.ts +40 -29
  116. package/src/cli/adapters/vercel.ts +95 -1262
  117. package/src/cli/analyze.ts +3 -2
  118. package/src/cli/build/cache.ts +6 -6
  119. package/src/cli/build.ts +33 -33
  120. package/src/cli/index.ts +4 -6
  121. package/src/cli/serve/pipeline.ts +16 -10
  122. package/src/cli/serve/standalone-worker.ts +8 -0
  123. package/src/cli/serve/standalone.ts +703 -0
  124. package/src/cli/start.ts +29 -8
  125. package/src/client/build.ts +1 -1
  126. package/src/client/reference-stub.ts +2 -34
  127. package/src/compat/actions/extensions.ts +3 -2
  128. package/src/compat/bundler/require-context.ts +2 -1
  129. package/src/compat/bundler/webpack-loaders.ts +3 -2
  130. package/src/compat/bundler/worker.ts +2 -2
  131. package/src/compat/css/inline-css.ts +1 -1
  132. package/src/compat/export/build-complete.ts +1 -1
  133. package/src/compat/export/emit.ts +4 -4
  134. package/src/compat/export/standalone.ts +30 -65
  135. package/src/compat/image-optimizer/optimize.ts +1 -1
  136. package/src/compat/lifecycle/instrumentation-client.ts +4 -3
  137. package/src/compat/metadata-artifacts.ts +1 -1
  138. package/src/compat/next/config-loader.ts +3 -0
  139. package/src/compat/next/dynamic.tsx +10 -23
  140. package/src/compat/next/font/cache.ts +2 -1
  141. package/src/compat/next/font/runtime.ts +1 -1
  142. package/src/compat/register/image.ts +1 -1
  143. package/src/compat/typecheck/check.ts +6 -4
  144. package/src/config.ts +28 -5
  145. package/src/css/assets.ts +1 -1
  146. package/src/css/build.ts +16 -9
  147. package/src/dev/client-chunk-store.ts +2 -1
  148. package/src/dev/restart/client-key.ts +2 -1
  149. package/src/dev/restart/global-css.ts +2 -1
  150. package/src/dev/restart/route-bundle-key.ts +2 -1
  151. package/src/dev/restart/route-facts.ts +2 -1
  152. package/src/dev/server.ts +8 -7
  153. package/src/out-paths.ts +10 -0
  154. package/src/render/renderer.ts +1 -1
  155. package/src/resolve/dynamic.ts +4 -0
  156. package/src/resolve/engine.ts +2 -12
  157. package/src/resolve/scan-facts.ts +185 -1
  158. package/src/routing/metadata-files.ts +1 -1
  159. package/src/runtime/loader.ts +5 -3
  160. package/src/runtime/module-cache.ts +2 -1
  161. package/src/runtime/modules.ts +50 -16
  162. package/src/runtime/prebundle.ts +23 -3
  163. package/src/runtime/production.ts +105 -40
  164. package/src/runtime/release-graph.ts +21 -13
  165. package/src/runtime/vendor-build.ts +45 -23
  166. package/src/types.ts +2 -3
  167. package/src/utils/directive.ts +40 -0
  168. package/src/utils/fs.ts +7 -2
  169. package/src/utils/resource-query.ts +12 -0
  170. package/dist/server/_chunks/index-tqn2qnnn.js +0 -241
  171. package/dist/server/_chunks/index-y36a0ybw.js +0 -57
  172. package/src/cli/serve/entry.ts +0 -52
@@ -5,10 +5,10 @@ import {
5
5
  } from "./index-2wfv4kvx.js";
6
6
  import {
7
7
  transpilePackages
8
- } from "./index-danncfhy.js";
8
+ } from "./index-wm36rj4v.js";
9
9
  import {
10
10
  selectRouteForRequest
11
- } from "./index-jepjvcrf.js";
11
+ } from "./index-8ct7rqy3.js";
12
12
  import {
13
13
  compatAliases,
14
14
  missingCompatImportError,
@@ -17,10 +17,10 @@ import {
17
17
  reactCompatEnabled,
18
18
  reactCompilerOptions,
19
19
  reactServerLayerAliases
20
- } from "./index-eeaanp2e.js";
20
+ } from "./index-kdhxpwyq.js";
21
21
  import {
22
22
  findProxyFiles
23
- } from "./index-kq8kpzye.js";
23
+ } from "./index-3ycf5ckv.js";
24
24
  import {
25
25
  getRequestRuntime
26
26
  } from "./index-z88qv16t.js";
@@ -29,19 +29,19 @@ import {
29
29
  } from "./index-2vz0wzdn.js";
30
30
  import {
31
31
  getNextConfig
32
- } from "./index-6e4fqv30.js";
32
+ } from "./index-m63czgq5.js";
33
33
  import {
34
34
  build
35
35
  } from "./index-cjgqs13g.js";
36
36
  import {
37
37
  cssModuleScopePath
38
- } from "./index-20ppawv7.js";
38
+ } from "./index-4da76t62.js";
39
39
  import {
40
40
  markErrorLogged
41
41
  } from "./index-jcsjq3d1.js";
42
42
  import {
43
43
  productionRelease
44
- } from "./index-tqn2qnnn.js";
44
+ } from "./index-hdbwtdv2.js";
45
45
  import {
46
46
  getWorkUnit
47
47
  } from "./index-grta8ap3.js";
@@ -54,7 +54,7 @@ import {
54
54
  resolveImport,
55
55
  resolvePackageSpecifier,
56
56
  setModuleAliases
57
- } from "./index-yz54pxrh.js";
57
+ } from "./index-d1jsmhhk.js";
58
58
  import {
59
59
  loadNative
60
60
  } from "./index-7wc9n8be.js";
@@ -170,7 +170,7 @@ function nextCssModuleChunkPlugin(config) {
170
170
  setup(build2) {
171
171
  build2.onLoad({ filter: /\.css$/ }, async ({ path: file }) => {
172
172
  const source = nextCssSource(file, config.root);
173
- const raw = (await (cssBuild ??= import("./build-spy3dxp4.js"))).hoistCssImports(readFileSync(source, "utf8"));
173
+ const raw = (await (cssBuild ??= import("./build-c991dv65.js"))).hoistCssImports(readFileSync(source, "utf8"));
174
174
  const contents = file.endsWith(".module.css") ? transformCssModule(raw, source, config.root) : rewriteTransparentBodyChildren(raw);
175
175
  return {
176
176
  contents: maybeLightningcssTransform(contents, source, config.root),
@@ -1291,7 +1291,7 @@ function resolveTranspiledRouteDependency() {
1291
1291
  async function validateProxyFiles(config) {
1292
1292
  if (findProxyFiles(config, NEXT_PROXY_NAMES).length === 0)
1293
1293
  return;
1294
- const { registerProxyExtensions } = await import("./proxy-w1d0wmsn.js");
1294
+ const { registerProxyExtensions } = await import("./proxy-gfhmktbk.js");
1295
1295
  registerProxyExtensions(config);
1296
1296
  await getProxyExtensions().validateFiles(config);
1297
1297
  }
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  currentRenderCacheMeta
4
- } from "./index-9n2914ww.js";
4
+ } from "./index-akkrvjn6.js";
5
5
  import {
6
6
  legacyRequestAPIs
7
7
  } from "./index-grta8ap3.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  getNextConfig
4
- } from "./index-6e4fqv30.js";
4
+ } from "./index-m63czgq5.js";
5
5
 
6
6
  // src/compat/mdx/compile.ts
7
7
  import { existsSync } from "fs";
@@ -1,22 +1,25 @@
1
1
  // @bun
2
2
  import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
+ import {
5
+ hasModuleDirective
6
+ } from "./index-jbj7ehef.js";
4
7
  import {
5
8
  readText
6
- } from "./index-20ppawv7.js";
9
+ } from "./index-4da76t62.js";
7
10
  import {
8
11
  pathToFileHref
9
- } from "./index-x93hv0sc.js";
12
+ } from "./index-71885zaq.js";
10
13
  import {
11
14
  clientReferenceId
12
15
  } from "./index-ras0sdab.js";
13
16
  import {
14
17
  moduleExportNames,
15
18
  moduleExportStars
16
- } from "./index-z4z9zv3b.js";
19
+ } from "./index-x9c55pzy.js";
17
20
  import {
18
21
  resolveImport
19
- } from "./index-yz54pxrh.js";
22
+ } from "./index-d1jsmhhk.js";
20
23
 
21
24
  // src/client/reference-stub.ts
22
25
  import path from "path";
@@ -73,50 +76,7 @@ async function clientReferenceExportNames(config, file, source, visited = new Se
73
76
  return [...names];
74
77
  }
75
78
  function hasUseClientDirective(source) {
76
- const isSpace = (index) => {
77
- const code = source.charCodeAt(index);
78
- return code === 32 || code >= 9 && code <= 13 || code > 127 && /\s/.test(source[index]);
79
- };
80
- let i = 0;
81
- for (;; ) {
82
- while (i < source.length && isSpace(i))
83
- i += 1;
84
- if (source.startsWith("//", i)) {
85
- const newline = source.indexOf(`
86
- `, i);
87
- if (newline === -1)
88
- return false;
89
- i = newline + 1;
90
- continue;
91
- }
92
- if (source.startsWith("/*", i)) {
93
- const end2 = source.indexOf("*/", i + 2);
94
- if (end2 === -1)
95
- return false;
96
- i = end2 + 2;
97
- continue;
98
- }
99
- const quote = source[i];
100
- if (quote !== '"' && quote !== "'")
101
- return false;
102
- let end = i + 1;
103
- while (end < source.length) {
104
- const char = source[end];
105
- if (char === quote || char === `
106
- ` || char === "\\")
107
- break;
108
- end += 1;
109
- }
110
- if (source[end] !== quote)
111
- return false;
112
- if (source.slice(i + 1, end) === "use client")
113
- return true;
114
- i = end + 1;
115
- while (i < source.length && isSpace(i))
116
- i += 1;
117
- if (source[i] === ";")
118
- i += 1;
119
- }
79
+ return hasModuleDirective(source, "use client");
120
80
  }
121
81
  function isInside(root, file) {
122
82
  const relative = path.relative(root, file);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  recordUseCacheLife,
4
4
  recordUseCacheTags
5
- } from "./index-eajaspjk.js";
5
+ } from "./index-j0m1jxqa.js";
6
6
  import {
7
7
  bumpRevalidationEvent,
8
8
  cachedData,
@@ -15,10 +15,10 @@ import {
15
15
  recordCacheNoStore,
16
16
  recordCacheRevalidate,
17
17
  recordCacheTags
18
- } from "./index-9n2914ww.js";
18
+ } from "./index-akkrvjn6.js";
19
19
  import {
20
20
  getNextConfig
21
- } from "./index-6e4fqv30.js";
21
+ } from "./index-m63czgq5.js";
22
22
  import {
23
23
  currentRequest,
24
24
  getWorkUnit
@@ -23,28 +23,30 @@ import {
23
23
  statSignature,
24
24
  transformCacheFile,
25
25
  vendorLoadsNatively
26
- } from "./index-vvmmknm1.js";
27
- import"./index-91x12ykq.js";
26
+ } from "./index-rjegyfx4.js";
27
+ import"./index-0r5eqfc7.js";
28
28
  import {
29
29
  pagesApiBundleTargetForRuntime,
30
30
  serverBundleTargetForRuntime,
31
31
  setServerBundleConditions
32
- } from "./index-3xbr4eyv.js";
33
- import"./index-c0g2wf3z.js";
32
+ } from "./index-0yjv5v47.js";
33
+ import"./index-jbj7ehef.js";
34
+ import"./index-gcmj16xy.js";
34
35
  import"./index-cjgqs13g.js";
35
- import"./index-20ppawv7.js";
36
+ import"./index-4da76t62.js";
36
37
  import"./index-vz0km5qk.js";
37
- import"./index-y36a0ybw.js";
38
- import"./index-x93hv0sc.js";
39
- import"./index-tqn2qnnn.js";
38
+ import"./index-71885zaq.js";
39
+ import"./index-bzd2ef7t.js";
40
+ import"./index-hdbwtdv2.js";
40
41
  import"./index-ras0sdab.js";
41
42
  import"./index-grta8ap3.js";
42
43
  import"./index-kresp2n8.js";
43
44
  import"./index-e3a6yx84.js";
44
- import"./index-z4z9zv3b.js";
45
- import"./index-yz54pxrh.js";
45
+ import"./index-x9c55pzy.js";
46
+ import"./index-d1jsmhhk.js";
46
47
  import"./index-7wc9n8be.js";
47
48
  import"./index-pym1cezq.js";
49
+ import"./index-jt8e1pje.js";
48
50
  import"./index-zqpqyg8p.js";
49
51
  import"./index-qjj6gddn.js";
50
52
  import"./index-rt9qq1va.js";
@@ -17,36 +17,38 @@ import {
17
17
  setEmitCompiledSpecifiersManifest,
18
18
  setReleaseCompile,
19
19
  warmDevModulePipeline
20
- } from "./index-1011cscr.js";
20
+ } from "./index-fjv96re1.js";
21
21
  import"./index-n4hxpng2.js";
22
22
  import"./index-x3yn4ywm.js";
23
- import"./index-vvmmknm1.js";
24
- import"./index-91x12ykq.js";
23
+ import"./index-rjegyfx4.js";
24
+ import"./index-0r5eqfc7.js";
25
25
  import {
26
26
  importModuleOnce,
27
27
  isReleaseCompile,
28
28
  throwIfModuleGraphFailed
29
- } from "./index-3xbr4eyv.js";
30
- import"./index-rn8dyr1f.js";
29
+ } from "./index-0yjv5v47.js";
30
+ import"./index-yrjkqtfj.js";
31
+ import"./index-jbj7ehef.js";
31
32
  import"./index-73z4esab.js";
32
33
  import"./index-web361b8.js";
33
34
  import"./index-knp0s912.js";
34
- import"./index-c0g2wf3z.js";
35
+ import"./index-gcmj16xy.js";
35
36
  import"./index-cjgqs13g.js";
36
- import"./index-20ppawv7.js";
37
+ import"./index-4da76t62.js";
37
38
  import"./index-vz0km5qk.js";
38
- import"./index-y36a0ybw.js";
39
- import"./index-x93hv0sc.js";
40
- import"./index-tqn2qnnn.js";
39
+ import"./index-71885zaq.js";
40
+ import"./index-bzd2ef7t.js";
41
+ import"./index-hdbwtdv2.js";
41
42
  import"./index-6kp9r0d9.js";
42
43
  import"./index-ras0sdab.js";
43
44
  import"./index-grta8ap3.js";
44
45
  import"./index-kresp2n8.js";
45
46
  import"./index-e3a6yx84.js";
46
- import"./index-z4z9zv3b.js";
47
- import"./index-yz54pxrh.js";
47
+ import"./index-x9c55pzy.js";
48
+ import"./index-d1jsmhhk.js";
48
49
  import"./index-7wc9n8be.js";
49
50
  import"./index-pym1cezq.js";
51
+ import"./index-jt8e1pje.js";
50
52
  import"./index-zqpqyg8p.js";
51
53
  import"./index-qjj6gddn.js";
52
54
  import"./index-rt9qq1va.js";
@@ -17,24 +17,24 @@ import {
17
17
  renderGlobalNotFoundResponse,
18
18
  renderPageResponse,
19
19
  renderPageWithStatus
20
- } from "./index-3tf1xjsp.js";
20
+ } from "./index-x2m17v9c.js";
21
21
  import {
22
22
  normalizePathname,
23
23
  parseNavState,
24
24
  selectRouteForRequest
25
- } from "./index-jepjvcrf.js";
25
+ } from "./index-8ct7rqy3.js";
26
26
  import {
27
27
  applyProxyResponse,
28
28
  createProxyRunner
29
- } from "./index-kq8kpzye.js";
29
+ } from "./index-3ycf5ckv.js";
30
30
  import {
31
31
  importModuleOnce,
32
32
  registerServerRuntime,
33
33
  serverBundleTargetForRuntime
34
- } from "./index-3xbr4eyv.js";
34
+ } from "./index-0yjv5v47.js";
35
35
  import {
36
36
  publishEmittedAssets
37
- } from "./index-y2jr2n72.js";
37
+ } from "./index-d158y67j.js";
38
38
  import {
39
39
  getRenderSpanExtensions
40
40
  } from "./index-web361b8.js";
@@ -43,29 +43,32 @@ import {
43
43
  setRequestRuntime
44
44
  } from "./index-z88qv16t.js";
45
45
  import"./index-yhxkxghe.js";
46
- import"./index-fkp000p1.js";
47
- import"./index-p77b4kcx.js";
46
+ import"./index-29pq0kax.js";
47
+ import"./index-cn86z041.js";
48
48
  import {
49
49
  exactNameIndex,
50
50
  hasExactName,
51
51
  resolveManifest
52
- } from "./index-20ppawv7.js";
52
+ } from "./index-4da76t62.js";
53
53
  import"./index-vz0km5qk.js";
54
54
  import {
55
55
  abortUpstreamFetchOnDisconnect,
56
56
  bootstrapCompat
57
- } from "./index-5gyr4emz.js";
57
+ } from "./index-tq3b39a5.js";
58
58
  import {
59
59
  loadConfig,
60
60
  pathToFileHref
61
- } from "./index-x93hv0sc.js";
61
+ } from "./index-71885zaq.js";
62
+ import"./index-bzd2ef7t.js";
62
63
  import {
63
64
  markErrorLogged
64
65
  } from "./index-jcsjq3d1.js";
65
66
  import {
66
67
  attachRelease,
68
+ buildManifestFile,
69
+ releaseFrameworkRoot,
67
70
  releaseModuleHref
68
- } from "./index-tqn2qnnn.js";
71
+ } from "./index-hdbwtdv2.js";
69
72
  import"./index-ras0sdab.js";
70
73
  import {
71
74
  flushWorkUnit,
@@ -79,6 +82,7 @@ import {
79
82
  import"./index-kresp2n8.js";
80
83
  import"./index-e3a6yx84.js";
81
84
  import"./index-pym1cezq.js";
85
+ import"./index-jt8e1pje.js";
82
86
  import {
83
87
  finalizeResponse,
84
88
  getProxyExtensions,
@@ -110,8 +114,8 @@ import { runWithCacheScope } from "../../../src/request/cache.ts";
110
114
  async function createRequestHandler(options = {}) {
111
115
  const config = options.config ?? await loadConfig(options.root, { serve: true });
112
116
  await bootstrapCompat(config);
113
- const manifestPath = path.join(config.outPath, "manifest.json");
114
- const manifest = resolveManifest(options.manifest ?? JSON.parse(await readFile(manifestPath, "utf8")), config.outPath, config.root);
117
+ const manifestPath = buildManifestFile(config.outPath);
118
+ const manifest = resolveManifest(options.manifest ?? JSON.parse(await readFile(manifestPath, "utf8")), config.outPath, config.root, releaseFrameworkRoot(config.outPath));
115
119
  const release = attachRelease(config);
116
120
  release.staticMetadataFiles = manifest.staticMetadataFiles;
117
121
  const handlerHrefs = new Map(manifest.routes.filter((route) => route.kind === "handler").map((route) => [
@@ -403,7 +407,7 @@ async function createRequestHandler(options = {}) {
403
407
  throw new Error("unsafe path");
404
408
  await mkdir(path.dirname(file), { recursive: true });
405
409
  await writeFile(file, new Uint8Array(await handlerResponse.clone().arrayBuffer()));
406
- const relative = path.relative(path.join(config.outPath, "public"), file).split(path.sep).join("/");
410
+ const relative = path.relative(path.join(config.outPath, "static"), file).split(path.sep).join("/");
407
411
  const routeRevalidate = matched.route.segmentConfig?.revalidate;
408
412
  const revalidateSeconds = typeof routeRevalidate === "number" && routeRevalidate > 0 ? renderedHandler.revalidateSeconds === undefined ? routeRevalidate : Math.min(routeRevalidate, renderedHandler.revalidateSeconds) : renderedHandler.revalidateSeconds;
409
413
  manifest.staticFiles ??= {};
@@ -481,7 +485,7 @@ async function createRequestHandler(options = {}) {
481
485
  throw new Error("unsafe path");
482
486
  await mkdir(path.dirname(file), { recursive: true });
483
487
  await writeFile(file, await pageResponse.clone().text());
484
- const relative = path.relative(path.join(config.outPath, "public"), file).split(path.sep).join("/");
488
+ const relative = path.relative(path.join(config.outPath, "static"), file).split(path.sep).join("/");
485
489
  manifest.staticFiles ??= {};
486
490
  manifest.staticFiles[relative] = {
487
491
  status: 200,
@@ -611,16 +615,16 @@ function hasBuildCapturedCacheControl(metadata) {
611
615
  return (metadata?.headers ?? []).some(([key]) => key.toLowerCase() === "cache-control");
612
616
  }
613
617
  async function builtFileInfo(outPath, pathname, staticFiles = {}, nextStaticFallback = false, exactNames) {
614
- const file = await firstFile(path.join(outPath, "public"), builtFileCandidates(outPath, pathname, nextStaticFallback), exactNames);
618
+ const file = await firstFile(path.join(outPath, "static"), builtFileCandidates(outPath, pathname, nextStaticFallback), exactNames);
615
619
  if (!file)
616
620
  return null;
617
- const publicPath = path.join(outPath, "public");
621
+ const publicPath = path.join(outPath, "static");
618
622
  const fileStat = await stat(file);
619
623
  const relative = path.relative(publicPath, file).split(path.sep).join("/");
620
624
  return { file, relative, mtimeMs: fileStat.mtimeMs, metadata: staticFiles[relative] };
621
625
  }
622
626
  function builtFileCandidates(outPath, pathname, nextStaticFallback = false) {
623
- const publicPath = path.join(outPath, "public");
627
+ const publicPath = path.join(outPath, "static");
624
628
  const trimmed = pathname.replace(/^\/+/, "");
625
629
  if (pathname === "/")
626
630
  return [path.join(publicPath, "index.html")];
@@ -642,7 +646,7 @@ function builtFileCandidates(outPath, pathname, nextStaticFallback = false) {
642
646
  return candidates;
643
647
  }
644
648
  function lazyStaticHtmlPath(outPath, pathname) {
645
- const publicPath = path.join(outPath, "public");
649
+ const publicPath = path.join(outPath, "static");
646
650
  const file = pathname === "/" ? path.join(publicPath, "index.html") : path.join(publicPath, pathname.replace(/^\/+|\/+$/g, ""), "index.html");
647
651
  const relative = path.relative(publicPath, file);
648
652
  if (relative.startsWith("..") || path.isAbsolute(relative))
@@ -652,7 +656,7 @@ function lazyStaticHtmlPath(outPath, pathname) {
652
656
  function lazyStaticHandlerPath(outPath, pathname) {
653
657
  if (pathname === "/")
654
658
  return null;
655
- const publicPath = path.join(outPath, "public");
659
+ const publicPath = path.join(outPath, "static");
656
660
  const file = path.join(publicPath, pathname.replace(/^\/+|\/+$/g, ""));
657
661
  const relative = path.relative(publicPath, file);
658
662
  if (relative.startsWith("..") || path.isAbsolute(relative))
@@ -696,7 +700,7 @@ async function maybeBuiltFile(outPath, pathname, staticFiles = {}, method = "GET
696
700
  const normalizedMethod = method.toUpperCase();
697
701
  if (normalizedMethod !== "GET" && normalizedMethod !== "HEAD")
698
702
  return null;
699
- const publicPath = path.join(outPath, "public");
703
+ const publicPath = path.join(outPath, "static");
700
704
  const file = await firstFile(publicPath, builtFileCandidates(outPath, pathname, nextStaticFallback), exactNames);
701
705
  if (!file)
702
706
  return null;
@@ -3,42 +3,53 @@ import {
3
3
  BUILD_INDEX_VERSION,
4
4
  attachRelease,
5
5
  buildIndexFile,
6
+ buildManifestFile,
6
7
  captureConventions,
7
8
  conventionFileExists,
8
9
  frozenDirListing,
9
- locateRelease,
10
+ linkStandaloneOrigins,
10
11
  productionRelease,
11
12
  readBuildIndex,
12
13
  releaseConfig,
14
+ releaseFrameworkRoot,
13
15
  releaseModuleHref,
14
16
  releaseModuleKey,
15
17
  releaseSourceFile,
16
18
  releaseSourceKey,
19
+ releaseSourceRoot,
17
20
  serializeReleaseConfig,
18
21
  servedAppFiles,
19
22
  servedConventions,
20
23
  servedRelease,
24
+ servingReleaseDir,
25
+ standaloneOriginsFile,
21
26
  writeBuildIndex
22
- } from "./index-tqn2qnnn.js";
27
+ } from "./index-hdbwtdv2.js";
28
+ import"./index-jt8e1pje.js";
23
29
  import"./index-rt9qq1va.js";
24
30
  export {
25
31
  BUILD_INDEX_VERSION,
26
32
  attachRelease,
27
33
  buildIndexFile,
34
+ buildManifestFile,
28
35
  captureConventions,
29
36
  conventionFileExists,
30
37
  frozenDirListing,
31
- locateRelease,
38
+ linkStandaloneOrigins,
32
39
  productionRelease,
33
40
  readBuildIndex,
34
41
  releaseConfig,
42
+ releaseFrameworkRoot,
35
43
  releaseModuleHref,
36
44
  releaseModuleKey,
37
45
  releaseSourceFile,
38
46
  releaseSourceKey,
47
+ releaseSourceRoot,
39
48
  serializeReleaseConfig,
40
49
  servedAppFiles,
41
50
  servedConventions,
42
51
  servedRelease,
52
+ servingReleaseDir,
53
+ standaloneOriginsFile,
43
54
  writeBuildIndex
44
55
  };
@@ -2,16 +2,18 @@
2
2
  import {
3
3
  releasedProxy,
4
4
  staticProxyConfig
5
- } from "./index-tvqkq6e6.js";
6
- import"./index-kq8kpzye.js";
7
- import"./index-3xbr4eyv.js";
8
- import"./index-x93hv0sc.js";
9
- import"./index-tqn2qnnn.js";
5
+ } from "./index-3e075kny.js";
6
+ import"./index-3ycf5ckv.js";
7
+ import"./index-0yjv5v47.js";
8
+ import"./index-71885zaq.js";
9
+ import"./index-bzd2ef7t.js";
10
+ import"./index-hdbwtdv2.js";
10
11
  import"./index-grta8ap3.js";
11
12
  import"./index-kresp2n8.js";
12
13
  import"./index-e3a6yx84.js";
13
14
  import"./index-7wc9n8be.js";
14
15
  import"./index-pym1cezq.js";
16
+ import"./index-jt8e1pje.js";
15
17
  import"./index-zqpqyg8p.js";
16
18
  import"./index-qjj6gddn.js";
17
19
  import"./index-rt9qq1va.js";
@@ -1,30 +1,32 @@
1
1
  // @bun
2
2
  import {
3
3
  registerProxyExtensions
4
- } from "./index-sv8m6789.js";
4
+ } from "./index-nf3df4jy.js";
5
5
  import"./index-2wfv4kvx.js";
6
- import"./index-eeaanp2e.js";
7
- import"./index-kq8kpzye.js";
8
- import"./index-3xbr4eyv.js";
6
+ import"./index-kdhxpwyq.js";
7
+ import"./index-3ycf5ckv.js";
8
+ import"./index-0yjv5v47.js";
9
9
  import"./index-6q7zvrap.js";
10
- import"./index-6e4fqv30.js";
10
+ import"./index-m63czgq5.js";
11
11
  import"./index-cjgqs13g.js";
12
12
  import"./index-jks0x0a1.js";
13
13
  import"./index-6b009mt0.js";
14
14
  import"./index-4zzebszd.js";
15
15
  import"./index-sq3kvz3g.js";
16
16
  import"./index-ckkdpht5.js";
17
- import"./index-20ppawv7.js";
18
- import"./index-x93hv0sc.js";
19
- import"./index-tqn2qnnn.js";
17
+ import"./index-4da76t62.js";
18
+ import"./index-71885zaq.js";
19
+ import"./index-bzd2ef7t.js";
20
+ import"./index-hdbwtdv2.js";
20
21
  import"./index-en7n9f7m.js";
21
22
  import"./index-grta8ap3.js";
22
23
  import"./index-kresp2n8.js";
23
24
  import"./index-e3a6yx84.js";
24
- import"./index-z4z9zv3b.js";
25
- import"./index-yz54pxrh.js";
25
+ import"./index-x9c55pzy.js";
26
+ import"./index-d1jsmhhk.js";
26
27
  import"./index-7wc9n8be.js";
27
28
  import"./index-pym1cezq.js";
29
+ import"./index-jt8e1pje.js";
28
30
  import"./index-zqpqyg8p.js";
29
31
  import"./index-qjj6gddn.js";
30
32
  import"./index-rt9qq1va.js";
@@ -3,10 +3,11 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  hasUseClientDirective
6
- } from "./index-rn8dyr1f.js";
6
+ } from "./index-yrjkqtfj.js";
7
+ import"./index-jbj7ehef.js";
7
8
  import {
8
9
  getNextConfig
9
- } from "./index-6e4fqv30.js";
10
+ } from "./index-m63czgq5.js";
10
11
  import"./index-cjgqs13g.js";
11
12
  import"./index-jks0x0a1.js";
12
13
  import"./index-6b009mt0.js";
@@ -17,17 +18,19 @@ import {
17
18
  listFiles,
18
19
  listFilesSync,
19
20
  toPosixPath
20
- } from "./index-20ppawv7.js";
21
- import"./index-x93hv0sc.js";
22
- import"./index-tqn2qnnn.js";
21
+ } from "./index-4da76t62.js";
22
+ import"./index-71885zaq.js";
23
+ import"./index-bzd2ef7t.js";
24
+ import"./index-hdbwtdv2.js";
23
25
  import"./index-ras0sdab.js";
24
26
  import"./index-grta8ap3.js";
25
27
  import"./index-kresp2n8.js";
26
28
  import"./index-e3a6yx84.js";
27
- import"./index-z4z9zv3b.js";
28
- import"./index-yz54pxrh.js";
29
+ import"./index-x9c55pzy.js";
30
+ import"./index-d1jsmhhk.js";
29
31
  import"./index-7wc9n8be.js";
30
32
  import"./index-pym1cezq.js";
33
+ import"./index-jt8e1pje.js";
31
34
  import"./index-zqpqyg8p.js";
32
35
  import"./index-qjj6gddn.js";
33
36
  import"./index-rt9qq1va.js";
@@ -10,8 +10,8 @@ import {
10
10
  routeFactsVersion,
11
11
  scanRoutes,
12
12
  setRouteFactsStore
13
- } from "./index-8k7pfejn.js";
14
- import"./index-91x12ykq.js";
13
+ } from "./index-jn9rbhrx.js";
14
+ import"./index-0r5eqfc7.js";
15
15
  import {
16
16
  findConventionFiles,
17
17
  findGlobalError,
@@ -22,22 +22,24 @@ import {
22
22
  parseNavState,
23
23
  selectRouteForRequest,
24
24
  serverActionsUnsupportedMessage
25
- } from "./index-jepjvcrf.js";
26
- import"./index-2dv4y4wd.js";
25
+ } from "./index-8ct7rqy3.js";
26
+ import"./index-n629dy38.js";
27
27
  import"./index-73z4esab.js";
28
- import"./index-y2jr2n72.js";
28
+ import"./index-d158y67j.js";
29
29
  import"./index-web361b8.js";
30
30
  import"./index-fp8r0sqs.js";
31
31
  import"./index-cjgqs13g.js";
32
- import"./index-p77b4kcx.js";
33
- import"./index-20ppawv7.js";
34
- import"./index-tqn2qnnn.js";
32
+ import"./index-cn86z041.js";
33
+ import"./index-4da76t62.js";
34
+ import"./index-bzd2ef7t.js";
35
+ import"./index-hdbwtdv2.js";
35
36
  import"./index-6kp9r0d9.js";
36
37
  import"./index-ras0sdab.js";
37
- import"./index-z4z9zv3b.js";
38
- import"./index-yz54pxrh.js";
38
+ import"./index-x9c55pzy.js";
39
+ import"./index-d1jsmhhk.js";
39
40
  import"./index-7wc9n8be.js";
40
41
  import"./index-pym1cezq.js";
42
+ import"./index-jt8e1pje.js";
41
43
  import"./index-zqpqyg8p.js";
42
44
  import"./index-qjj6gddn.js";
43
45
  import"./index-rt9qq1va.js";