@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
@@ -6,7 +6,7 @@ import {
6
6
  } from "./index-qpwsgt3a.js";
7
7
  import {
8
8
  compileMdx
9
- } from "./index-qm6kmhqs.js";
9
+ } from "./index-y7mzvq2q.js";
10
10
  import {
11
11
  setClientActionBundler
12
12
  } from "./index-n4hxpng2.js";
@@ -16,7 +16,7 @@ import {
16
16
  protocolInterceptors,
17
17
  recordRewrite,
18
18
  registerProxyExtensions
19
- } from "./index-sv8m6789.js";
19
+ } from "./index-nf3df4jy.js";
20
20
  import {
21
21
  instrumentationLookupRoots,
22
22
  instrumentationReady,
@@ -27,7 +27,7 @@ import {
27
27
  registerCompatBootExtensions,
28
28
  registerLifecycleExtensions,
29
29
  reportActionErrorToUser
30
- } from "./index-k1g3epw0.js";
30
+ } from "./index-xh1nbk46.js";
31
31
  import {
32
32
  activateTestProxy
33
33
  } from "./index-2wfv4kvx.js";
@@ -70,7 +70,7 @@ import {
70
70
  withPagesDataSpan,
71
71
  withRenderBodySpan,
72
72
  withRouteHandlerSpan
73
- } from "./index-4q2gbfwk.js";
73
+ } from "./index-j681c48a.js";
74
74
  import {
75
75
  scanRootParams
76
76
  } from "./index-v1ags1na.js";
@@ -88,7 +88,7 @@ import {
88
88
  schedulePprShellUpgrade,
89
89
  staticParamsFor,
90
90
  withRequestRouteParams
91
- } from "./index-3tf1xjsp.js";
91
+ } from "./index-x2m17v9c.js";
92
92
  import {
93
93
  builtInServerExternalPackages,
94
94
  cacheComponentsEnabled,
@@ -107,12 +107,12 @@ import {
107
107
  tsconfigPath,
108
108
  turbopackLoaderRules,
109
109
  turbopackResolveAlias
110
- } from "./index-danncfhy.js";
110
+ } from "./index-wm36rj4v.js";
111
111
  import {
112
112
  matchInterception,
113
113
  parseNavState,
114
114
  selectRouteForRequest
115
- } from "./index-jepjvcrf.js";
115
+ } from "./index-8ct7rqy3.js";
116
116
  import {
117
117
  actionClientStubPlugin,
118
118
  actionStubSourceFor,
@@ -129,25 +129,26 @@ import {
129
129
  nextCompatEnabled as nextCompatEnabled2,
130
130
  rewriteNextFontSource,
131
131
  setClientActionModules
132
- } from "./index-eeaanp2e.js";
132
+ } from "./index-kdhxpwyq.js";
133
133
  import {
134
134
  setProxyRunObserver
135
- } from "./index-kq8kpzye.js";
135
+ } from "./index-3ycf5ckv.js";
136
136
  import {
137
137
  devServerModuleHref,
138
138
  pagesApiBundleTargetForRuntime,
139
139
  serverBundleTargetForRuntime,
140
140
  setServerBundleConditions
141
- } from "./index-3xbr4eyv.js";
141
+ } from "./index-0yjv5v47.js";
142
142
  import {
143
143
  registerConfigSource
144
- } from "./index-ncnes8c6.js";
144
+ } from "./index-11xpbfej.js";
145
145
  import {
146
146
  hasUseClientDirective
147
- } from "./index-rn8dyr1f.js";
147
+ } from "./index-yrjkqtfj.js";
148
+ import"./index-jbj7ehef.js";
148
149
  import {
149
150
  withAssetPrefix
150
- } from "./index-y2jr2n72.js";
151
+ } from "./index-d158y67j.js";
151
152
  import {
152
153
  getDocumentScriptExtensions,
153
154
  nextCompatEnabled,
@@ -179,7 +180,7 @@ import {
179
180
  appPathname,
180
181
  loadCompatHeaders,
181
182
  resolveCompatHeaders
182
- } from "./index-egykcqg3.js";
183
+ } from "./index-rgj5mx84.js";
183
184
  import {
184
185
  fontAssets,
185
186
  fontPreloadDomScript,
@@ -188,22 +189,22 @@ import {
188
189
  registerFontFinalizerOnce,
189
190
  releaseFonts,
190
191
  runWithFontScope
191
- } from "./index-ytjvpbm2.js";
192
- import"./index-3b3at80h.js";
192
+ } from "./index-gkndxkxf.js";
193
+ import"./index-qcrvt6er.js";
193
194
  import"./index-knp0s912.js";
194
- import"./index-c0g2wf3z.js";
195
+ import"./index-gcmj16xy.js";
195
196
  import"./index-fn1chkkd.js";
196
197
  import {
197
198
  renderPartytownHeadScripts
198
- } from "./index-sjpckxqn.js";
199
+ } from "./index-9f49w76j.js";
199
200
  import"./index-ye9hmsvf.js";
200
201
  import {
201
202
  staticImageModule
202
- } from "./index-06nyqntx.js";
203
+ } from "./index-q3r9z8mq.js";
203
204
  import {
204
205
  loadCompatRedirects,
205
206
  resolveCompatRedirect
206
- } from "./index-hkdfj58q.js";
207
+ } from "./index-cvr4z22m.js";
207
208
  import {
208
209
  ACTION_ID_FIELD,
209
210
  ACTION_ID_HEADER,
@@ -240,7 +241,7 @@ import {
240
241
  serializeBoundaryError,
241
242
  validateServerActionsConfigSync,
242
243
  wrapThrownValue
243
- } from "./index-z84ab1w0.js";
244
+ } from "./index-he6n2bvp.js";
244
245
  import {
245
246
  inlineUseServerFunctions,
246
247
  moduleActionExports,
@@ -251,17 +252,17 @@ import {
251
252
  import"./index-79ngvam8.js";
252
253
  import {
253
254
  registerResourceHintFinalizer
254
- } from "./index-ym67zqxp.js";
255
+ } from "./index-tf4j19ge.js";
255
256
  import {
256
257
  isImageOptimizerRequest,
257
258
  serveImageOptimizer
258
- } from "./index-qn4z5s3c.js";
259
+ } from "./index-typcbcsv.js";
259
260
  import {
260
261
  manifestLocalPatterns
261
262
  } from "./index-tgsfjmep.js";
262
263
  import {
263
264
  getImagesConfig
264
- } from "./index-357na4a8.js";
265
+ } from "./index-141vcwk6.js";
265
266
  import {
266
267
  NEXT_ROUTER_PREFETCH_HEADER,
267
268
  NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,
@@ -288,11 +289,11 @@ import {
288
289
  setUseCacheFillTimeout,
289
290
  setUseCacheRootParamNames,
290
291
  takeCacheLifeStash
291
- } from "./index-eajaspjk.js";
292
+ } from "./index-j0m1jxqa.js";
292
293
  import {
293
294
  nextClientRouteState,
294
295
  staticSiblingNames
295
- } from "./index-cf4rvxv6.js";
296
+ } from "./index-52k54ykj.js";
296
297
  import {
297
298
  getRequestRuntime
298
299
  } from "./index-z88qv16t.js";
@@ -306,7 +307,7 @@ import {
306
307
  import"./index-2vz0wzdn.js";
307
308
  import {
308
309
  withSyncProps
309
- } from "./index-0374j2b9.js";
310
+ } from "./index-y4d02znn.js";
310
311
  import {
311
312
  beginPrerenderErrorCollection,
312
313
  collectRenderCacheMeta,
@@ -333,7 +334,7 @@ import {
333
334
  tagsRevalidatedSince,
334
335
  tagsRevalidationReasonSince,
335
336
  tagsStaleSince
336
- } from "./index-9n2914ww.js";
337
+ } from "./index-akkrvjn6.js";
337
338
  import {
338
339
  cacheHandlerGet,
339
340
  cacheHandlerSet,
@@ -342,7 +343,7 @@ import {
342
343
  } from "./index-bcws5eh2.js";
343
344
  import {
344
345
  getNextConfig
345
- } from "./index-6e4fqv30.js";
346
+ } from "./index-m63czgq5.js";
346
347
  import {
347
348
  build
348
349
  } from "./index-cjgqs13g.js";
@@ -354,22 +355,26 @@ import"./index-ckkdpht5.js";
354
355
  import"./index-yhxkxghe.js";
355
356
  import {
356
357
  taintObjectReference
357
- } from "./index-fkp000p1.js";
358
- import"./index-p77b4kcx.js";
358
+ } from "./index-29pq0kax.js";
359
+ import"./index-cn86z041.js";
359
360
  import {
360
361
  cssModuleScopePath,
361
362
  listFilesSync,
362
363
  toPosixPath
363
- } from "./index-20ppawv7.js";
364
+ } from "./index-4da76t62.js";
364
365
  import"./index-vz0km5qk.js";
365
366
  import {
366
367
  pathToFileHref,
367
368
  publicEnvDefines
368
- } from "./index-x93hv0sc.js";
369
+ } from "./index-71885zaq.js";
370
+ import {
371
+ outCachePath
372
+ } from "./index-bzd2ef7t.js";
369
373
  import"./index-jcsjq3d1.js";
370
374
  import {
375
+ buildManifestFile,
371
376
  productionRelease
372
- } from "./index-tqn2qnnn.js";
377
+ } from "./index-hdbwtdv2.js";
373
378
  import {
374
379
  clientReferenceId
375
380
  } from "./index-ras0sdab.js";
@@ -393,13 +398,13 @@ import {
393
398
  import"./index-e3a6yx84.js";
394
399
  import {
395
400
  rewriteLegacyLinkValidation
396
- } from "./index-11sfk4hb.js";
401
+ } from "./index-vmr35jjw.js";
397
402
  import {
398
403
  importSpecifiers,
399
404
  rewriteFacts,
400
405
  rewriteSpecifierLiterals,
401
406
  spliceSource
402
- } from "./index-z4z9zv3b.js";
407
+ } from "./index-x9c55pzy.js";
403
408
  import {
404
409
  configuredTsPathPatterns,
405
410
  isCommonJsModuleSource,
@@ -420,13 +425,14 @@ import {
420
425
  setExternalPackagePolicy,
421
426
  setResolveExtensions,
422
427
  setTsConfigPath
423
- } from "./index-yz54pxrh.js";
428
+ } from "./index-d1jsmhhk.js";
424
429
  import {
425
430
  loadNative
426
431
  } from "./index-7wc9n8be.js";
427
432
  import {
428
433
  findWorkspaceRoot
429
434
  } from "./index-pym1cezq.js";
435
+ import"./index-jt8e1pje.js";
430
436
  import {
431
437
  applyClientSourceTransforms,
432
438
  getAssetExtensions,
@@ -3263,7 +3269,7 @@ async function ensureActionsRegistered(runtime) {
3263
3269
  await manifestRegistration.done;
3264
3270
  }
3265
3271
  async function registerManifestActions(config) {
3266
- const manifestPath = path5.join(config.outPath, "manifest.json");
3272
+ const manifestPath = buildManifestFile(config.outPath);
3267
3273
  let manifest;
3268
3274
  try {
3269
3275
  manifest = JSON.parse(await readFile2(manifestPath, "utf8"));
@@ -3381,7 +3387,7 @@ function requestWouldMiss(config, pathname) {
3381
3387
  return !servableFile(config, pathname);
3382
3388
  }
3383
3389
  function servableFile(config, pathname) {
3384
- const publicRoot = path5.join(config.outPath, "public");
3390
+ const publicRoot = path5.join(config.outPath, "static");
3385
3391
  const trimmed = pathname.replace(/^\/+|\/+$/g, "");
3386
3392
  const file = trimmed ? path5.join(publicRoot, trimmed) : publicRoot;
3387
3393
  const relative = path5.relative(publicRoot, file);
@@ -3897,7 +3903,7 @@ async function writeImagesManifestStep(ctx) {
3897
3903
  async function mirrorStaticMedia(config) {
3898
3904
  const { cp } = await import("fs/promises");
3899
3905
  for (const dir of ["media", "immutable/media"]) {
3900
- const source = path8.join(config.outPath, "public", "_next", "static", dir);
3906
+ const source = path8.join(config.outPath, "static", "_next", "static", dir);
3901
3907
  const target = path8.join(config.root, ".next", "static", dir);
3902
3908
  try {
3903
3909
  await cp(source, target, { recursive: true, force: true });
@@ -4867,10 +4873,10 @@ async function buildInstrumentationClient(config) {
4867
4873
  if (!userFile)
4868
4874
  return;
4869
4875
  const modules = [...injectEntries(config), userFile];
4870
- const workDir = path10.join(config.outPath, "cache", "instrumentation-client");
4876
+ const workDir = path10.join(outCachePath(config.outPath), "instrumentation-client");
4871
4877
  mkdirSync(workDir, { recursive: true });
4872
4878
  const entryFile = path10.join(workDir, "entry.ts");
4873
- const outfile = path10.join(config.outPath, "public", INSTRUMENTATION_CLIENT_ASSET);
4879
+ const outfile = path10.join(config.outPath, "static", INSTRUMENTATION_CLIENT_ASSET);
4874
4880
  mkdirSync(path10.dirname(outfile), { recursive: true });
4875
4881
  await Bun.write(entryFile, entrySource(modules));
4876
4882
  const tsconfig = path10.join(config.root, "tsconfig.json");
@@ -4890,7 +4896,7 @@ async function buildInstrumentationClient(config) {
4890
4896
  }
4891
4897
  var bundlePresence;
4892
4898
  function hasInstrumentationClientBundle(config) {
4893
- bundlePresence ??= existsSync6(path10.join(config.outPath, "public", INSTRUMENTATION_CLIENT_ASSET));
4899
+ bundlePresence ??= existsSync6(path10.join(config.outPath, "static", INSTRUMENTATION_CLIENT_ASSET));
4894
4900
  return bundlePresence;
4895
4901
  }
4896
4902
  function instrumentationClientHeadTag(config) {
@@ -5419,7 +5425,7 @@ function inlineStyleTag(css, nonce) {
5419
5425
  function inlineCssStylesheets(config, options) {
5420
5426
  if (options.dev || suppressed.getStore() === true || !inlineCssEnabled(config))
5421
5427
  return;
5422
- const assets = options.assetNames.map((asset) => readCss(`${config.outPath}/public/assets/${asset}`));
5428
+ const assets = options.assetNames.map((asset) => readCss(`${config.outPath}/static/assets/${asset}`));
5423
5429
  if (assets.some((css2) => css2 === undefined))
5424
5430
  return;
5425
5431
  const css = [options.prependCss, ...assets].filter(Boolean).join(`
@@ -8091,7 +8097,7 @@ function resolveContextDir(specifier, file, paths) {
8091
8097
  if (existsSync11(direct))
8092
8098
  return direct;
8093
8099
  if (paths?.outPath && paths.workspaceRoot) {
8094
- const cacheRoot = path18.join(paths.outPath, "cache", "server");
8100
+ const cacheRoot = path18.join(outCachePath(paths.outPath), "server");
8095
8101
  const relative = path18.relative(cacheRoot, file);
8096
8102
  if (relative && !relative.startsWith("..") && !path18.isAbsolute(relative)) {
8097
8103
  const segments = relative.split(path18.sep);
@@ -8472,7 +8478,7 @@ function resolveLoaderRequest(root, context, request) {
8472
8478
  }
8473
8479
  function originalResourcePath(resourcePath, config) {
8474
8480
  if (config) {
8475
- const cacheRoot = path22.join(config.outPath, "cache", "server");
8481
+ const cacheRoot = path22.join(outCachePath(config.outPath), "server");
8476
8482
  const rel = path22.relative(cacheRoot, resourcePath);
8477
8483
  if (rel && !rel.startsWith("..") && !path22.isAbsolute(rel)) {
8478
8484
  const segments = rel.split(path22.sep);
@@ -8566,7 +8572,7 @@ async function emitAssetResourceModule(config, resourcePath, bytes) {
8566
8572
  const hash = createHash2("sha256").update(bytes).digest("hex").slice(0, 8);
8567
8573
  const base = path22.basename(resourcePath, path22.extname(resourcePath)).replace(/[^A-Za-z0-9_-]+/g, "-");
8568
8574
  const relative = path22.posix.join("_next", "static", "media", `${base}.${hash}${ext}`);
8569
- const target = path22.join(config.outPath, "public", ...relative.split("/"));
8575
+ const target = path22.join(config.outPath, "static", ...relative.split("/"));
8570
8576
  await mkdir4(path22.dirname(target), { recursive: true });
8571
8577
  if (!existsSync13(target))
8572
8578
  await writeFile5(target, bytes);
@@ -8849,7 +8855,7 @@ export { src };
8849
8855
  `;
8850
8856
  }
8851
8857
  for (const relative of emitted) {
8852
- const target = path23.join(config.outPath, "public", ...relative.split("/"));
8858
+ const target = path23.join(config.outPath, "static", ...relative.split("/"));
8853
8859
  await mkdir5(path23.dirname(target), { recursive: true });
8854
8860
  if (!existsSync14(target))
8855
8861
  await copyFile(sourcePath, target);
@@ -8908,7 +8914,7 @@ async function bundleWorkerEntry(config, entry) {
8908
8914
  const hash = createHash3("sha256").update(output.contents).digest("hex").slice(0, 8);
8909
8915
  const base = path23.basename(entry, path23.extname(entry)).replace(/[^A-Za-z0-9_-]+/g, "-");
8910
8916
  const relative = path23.posix.join("assets", "workers", `${base}.${hash}.js`);
8911
- const target = path23.join(config.outPath, "public", ...relative.split("/"));
8917
+ const target = path23.join(config.outPath, "static", ...relative.split("/"));
8912
8918
  await mkdir5(path23.dirname(target), { recursive: true });
8913
8919
  await writeFile6(target, output.contents);
8914
8920
  return `/${relative}`;
@@ -9394,7 +9400,7 @@ function registerEdgeRuntimeExtensions() {
9394
9400
 
9395
9401
  // src/compat/register/index.ts
9396
9402
  async function registerCompatExtensions(config, options = {}) {
9397
- const build2 = options.serve ? undefined : await import("./build-tier-m7yvqz61.js");
9403
+ const build2 = options.serve ? undefined : await import("./build-tier-0a96kmx3.js");
9398
9404
  registerCompatBootExtensions(config);
9399
9405
  build2?.registerBuildCompatExtensions();
9400
9406
  registerConfigSource();
@@ -6,11 +6,11 @@ import {
6
6
  } from "./index-2vz0wzdn.js";
7
7
  import {
8
8
  withSyncAccess
9
- } from "./index-0374j2b9.js";
9
+ } from "./index-y4d02znn.js";
10
10
  import {
11
11
  assertNoDynamicApiInsideCache,
12
12
  currentRenderCacheMeta
13
- } from "./index-9n2914ww.js";
13
+ } from "./index-akkrvjn6.js";
14
14
  import {
15
15
  currentRequest,
16
16
  currentResponseHeaders,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  insideDataCacheProducer
4
- } from "./index-9n2914ww.js";
4
+ } from "./index-akkrvjn6.js";
5
5
  import {
6
6
  cacheComponents,
7
7
  hangingPromise,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  pnextVersionRange
4
- } from "./index-20ppawv7.js";
4
+ } from "./index-4da76t62.js";
5
5
  import {
6
6
  bold,
7
7
  cyan,
@@ -34,11 +34,11 @@ import {
34
34
  serverRequireAlias,
35
35
  statSignature,
36
36
  vendorLoadsNatively
37
- } from "./index-vvmmknm1.js";
37
+ } from "./index-rjegyfx4.js";
38
38
  import {
39
39
  deferredDynamicImportSpecifiers,
40
40
  devDynamicSplitEnabled
41
- } from "./index-91x12ykq.js";
41
+ } from "./index-0r5eqfc7.js";
42
42
  import {
43
43
  clearModuleGraphFailure,
44
44
  forgetModuleEvalError,
@@ -49,12 +49,12 @@ import {
49
49
  setPreplanDrain,
50
50
  setReleaseCompileFlag,
51
51
  throwIfModuleEvalFailed
52
- } from "./index-3xbr4eyv.js";
52
+ } from "./index-0yjv5v47.js";
53
53
  import {
54
54
  clientReferenceExportNames,
55
55
  clientReferenceModuleSource,
56
56
  hasUseClientDirective
57
- } from "./index-rn8dyr1f.js";
57
+ } from "./index-yrjkqtfj.js";
58
58
  import {
59
59
  formatDuration
60
60
  } from "./index-73z4esab.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./index-knp0s912.js";
67
67
  import {
68
68
  frameworkFingerprint
69
- } from "./index-c0g2wf3z.js";
69
+ } from "./index-gcmj16xy.js";
70
70
  import {
71
71
  build
72
72
  } from "./index-cjgqs13g.js";
@@ -75,7 +75,7 @@ import {
75
75
  toPosixPath,
76
76
  writeFileAtomic,
77
77
  writeText
78
- } from "./index-20ppawv7.js";
78
+ } from "./index-4da76t62.js";
79
79
  import {
80
80
  traceEnabled,
81
81
  traceValue
@@ -84,17 +84,23 @@ import {
84
84
  frameworkRuntimeAliasEntries,
85
85
  pathToFileHref,
86
86
  pnextAliases
87
- } from "./index-x93hv0sc.js";
87
+ } from "./index-71885zaq.js";
88
+ import {
89
+ outCachePath
90
+ } from "./index-bzd2ef7t.js";
88
91
  import {
89
92
  productionRelease,
90
93
  releaseModuleHref
91
- } from "./index-tqn2qnnn.js";
94
+ } from "./index-hdbwtdv2.js";
92
95
  import {
93
96
  noteCompiledClientReference,
94
97
  ssrClientReference
95
98
  } from "./index-ras0sdab.js";
96
99
  import {
100
+ absolutePathLiterals,
101
+ hasModuleState,
97
102
  importSpecifiers,
103
+ lineComments,
98
104
  moduleSpecifierEdges,
99
105
  outputSpecifiers,
100
106
  rewriteSpecifierLiterals,
@@ -102,7 +108,7 @@ import {
102
108
  stripJsonImportAttributes,
103
109
  transformBailReason,
104
110
  transformServerModule
105
- } from "./index-z4z9zv3b.js";
111
+ } from "./index-x9c55pzy.js";
106
112
  import {
107
113
  cachedExistsSync,
108
114
  externalPackageImportTarget,
@@ -118,9 +124,11 @@ import {
118
124
  resolveLinkedPackageSpecifier,
119
125
  resolveNestedPackageFromImporter,
120
126
  resolvePackageSpecifier,
121
- resolveVendorPackageSpecifier,
127
+ resolveVendorPackageSpecifier
128
+ } from "./index-d1jsmhhk.js";
129
+ import {
122
130
  splitResourceQuery
123
- } from "./index-yz54pxrh.js";
131
+ } from "./index-jt8e1pje.js";
124
132
  import {
125
133
  applyBundledSourceTransforms,
126
134
  extraLoadableExtensions,
@@ -1074,7 +1082,7 @@ function vendorArtifactKey(config, target, conditionTarget, source) {
1074
1082
  var vendorGeneration = (config) => frameworkFingerprint(cacheRoot(config.outPath));
1075
1083
  var vendorPortablePath = (config, file) => devSourceIdentity(file, config.workspaceRoot);
1076
1084
  function vendorArtifactFile(config, key) {
1077
- return path2.join(config.outPath, "cache", "server", "vendor", `${hashBundleSpecifier(key)}.mjs`);
1085
+ return path2.join(outCachePath(config.outPath), "server", "vendor", `${hashBundleSpecifier(key)}.mjs`);
1078
1086
  }
1079
1087
  function resolveVendorEntry(config, specifier, resolveDir, conditionTarget) {
1080
1088
  const key = `${config.root}\x00${conditionTarget}\x00${resolveDir}\x00${specifier}`;
@@ -1258,7 +1266,7 @@ function reusableVendorContent(config, entry, target, conditionTarget) {
1258
1266
  const id = vendorSharedFor(config).get(entry);
1259
1267
  if (!id)
1260
1268
  return;
1261
- const content = vendorContentFile(path2.join(config.outPath, "cache", "server", "vendor"), id);
1269
+ const content = vendorContentFile(path2.join(outCachePath(config.outPath), "server", "vendor"), id);
1262
1270
  return existsSync2(content) ? content : undefined;
1263
1271
  }
1264
1272
  var vendorReuseEnabled = () => process.env.PNEXT_VENDOR_REUSE !== "0";
@@ -1697,7 +1705,6 @@ function packageExportSubpaths(packageRoot) {
1697
1705
  return [];
1698
1706
  }
1699
1707
  }
1700
- var MODULE_STATE = /^(?:export\s+)?(?:const|let|var)\s[^=;]*=\s*(?:(?:\/\*\s*[#@]__PURE__\s*\*\/\s*)?new\s|(?!require\s*\()[\w$.]+\s*\()/m;
1701
1708
  async function statefulPackageFiles(entry, packageRoot) {
1702
1709
  const files = [...await packageReach(entry, packageRoot)];
1703
1710
  const sources = await Promise.all(files.map((file) => packageFileScan(file)));
@@ -1710,7 +1717,7 @@ function packageFileScan(file) {
1710
1717
  if (!scan) {
1711
1718
  scan = readFile2(file, "utf8").then((source) => ({
1712
1719
  imports: packageScanner.scanImports(source).map(({ path: specifier }) => specifier).filter((specifier) => specifier.startsWith(".")),
1713
- stateful: MODULE_STATE.test(source)
1720
+ stateful: hasModuleState(file, source)
1714
1721
  })).catch(() => {
1715
1722
  return;
1716
1723
  });
@@ -2720,7 +2727,7 @@ function enabled() {
2720
2727
  return restartCacheEnabled() && process.env.PNEXT_DEV_BUNDLE_KEY_CACHE !== "0";
2721
2728
  }
2722
2729
  function recordFile(config, routeId) {
2723
- return path3.join(config.outPath, "cache", "route-bundles", `${hash(routeId)}.json`);
2730
+ return path3.join(outCachePath(config.outPath), "route-bundles", `${hash(routeId)}.json`);
2724
2731
  }
2725
2732
  function recordKey(graphKey, files) {
2726
2733
  return hash(`${RECORD_VERSION}
@@ -3924,15 +3931,35 @@ function relocateSource(file, contents, locate, installed = () => false) {
3924
3931
  const specifiers = spliceSource(contents, edits);
3925
3932
  if (!isReleaseCompile())
3926
3933
  return specifiers;
3927
- return specifiers.replace(/(?<!\\)"((?:file:\/\/)?\/[^"\\\n]+)"(\s*:)?/g, (literal, value, key) => {
3934
+ const expression = (value) => {
3928
3935
  const url = value.startsWith("file:");
3929
3936
  const target = locate(url ? fileURLToPath3(value) : value);
3930
3937
  if (!target)
3931
- return literal;
3938
+ return;
3932
3939
  const href = `new URL(${JSON.stringify(relativeTo(target))}, import.meta.url)`;
3933
- const expression = url ? `${href}.href` : `decodeURIComponent(${href}.pathname)`;
3934
- return key ? `[${expression}]${key}` : expression;
3935
- });
3940
+ return url ? `${href}.href` : `decodeURIComponent(${href}.pathname)`;
3941
+ };
3942
+ const literals = absolutePathLiterals(file, specifiers);
3943
+ if (!literals) {
3944
+ return specifiers.replace(/(?<!\\)"((?:file:\/\/)?\/[^"\\\n]+)"(\s*:)?/g, (literal, value, key) => {
3945
+ const replacement = expression(value);
3946
+ if (!replacement)
3947
+ return literal;
3948
+ return key ? `[${replacement}]${key}` : replacement;
3949
+ });
3950
+ }
3951
+ return spliceSource(specifiers, literals.flatMap((literal) => {
3952
+ const replacement = expression(literal.value);
3953
+ if (!replacement)
3954
+ return [];
3955
+ return [
3956
+ {
3957
+ start: literal.start,
3958
+ end: literal.end,
3959
+ value: literal.key ? `[${replacement}]` : replacement
3960
+ }
3961
+ ];
3962
+ }));
3936
3963
  }
3937
3964
  var isInstalled = (file) => file.includes(`${path4.sep}node_modules${path4.sep}`);
3938
3965
  var packageCandidates = new Map;
@@ -4007,13 +4034,18 @@ function releaseArtifactSource(file, contents) {
4007
4034
  const anchors = cacheRoot2 && releaseAnchors.get(cacheRoot2);
4008
4035
  if (!cacheRoot2 || !anchors)
4009
4036
  return contents;
4010
- return relocateSource(file, releaseInputComments(contents), (absolute) => isInside(cacheRoot2, absolute) ? absolute : portableTarget(anchors, absolute), (absolute) => !isInside(cacheRoot2, absolute) && isInstalled(absolute));
4037
+ return relocateSource(file, releaseInputComments(file, contents), (absolute) => isInside(cacheRoot2, absolute) ? absolute : portableTarget(anchors, absolute), (absolute) => !isInside(cacheRoot2, absolute) && isInstalled(absolute));
4011
4038
  }
4012
- function releaseInputComments(contents) {
4013
- return contents.replace(/^\/\/ (?:[\w-]+:)?\.{0,2}\/[^\s]*$/gm, (comment) => {
4039
+ function releaseInputComments(file, contents) {
4040
+ const shorten = (comment) => {
4014
4041
  const installed = comment.indexOf("node_modules/");
4015
4042
  return `// ${installed === -1 ? path4.basename(comment) : comment.slice(installed)}`;
4016
- });
4043
+ };
4044
+ const inputPath = /^ (?:[\w-]+:)?\.{0,2}\/\S*$/;
4045
+ const comments = lineComments(file, contents);
4046
+ if (!comments)
4047
+ return contents.replace(/^\/\/ (?:[\w-]+:)?\.{0,2}\/[^\s]*$/gm, shorten);
4048
+ return spliceSource(contents, comments.filter((comment) => inputPath.test(comment.value)).map((comment) => ({ ...comment, value: shorten(`//${comment.value}`) })));
4017
4049
  }
4018
4050
  function portableTarget(anchors, target) {
4019
4051
  if (anchors.roots.some((root) => isInside(root, target)))
@@ -4031,7 +4063,7 @@ async function writeCompiledFile(file, contents) {
4031
4063
  const anchors = profileRoot && isReleaseCompile() ? releaseAnchors.get(path4.dirname(profileRoot)) : undefined;
4032
4064
  if (profileRoot && (anchors ? /["'](?:file:\/\/)?\/|^\/\/ (?:[\w-]+:)?\.{0,2}\//m.test(contents) : contents.includes("file://"))) {
4033
4065
  const cacheRoot2 = path4.dirname(profileRoot);
4034
- contents = relocateSource(file, anchors ? releaseInputComments(contents) : contents, (absolute) => isInside(cacheRoot2, absolute) ? absolute : anchors && portableTarget(anchors, absolute), (absolute) => !isInside(cacheRoot2, absolute) && isInstalled(absolute));
4066
+ contents = relocateSource(file, anchors ? releaseInputComments(file, contents) : contents, (absolute) => isInside(cacheRoot2, absolute) ? absolute : anchors && portableTarget(anchors, absolute), (absolute) => !isInside(cacheRoot2, absolute) && isInstalled(absolute));
4035
4067
  }
4036
4068
  if (anchors && contents.includes(".json.js"))
4037
4069
  contents = stripJsonImportAttributes(contents, file, (specifier) => compiledJsonModule.test(specifier));
@@ -4199,7 +4231,7 @@ async function writeDevModuleUncached(config, file, visited, options, outFile) {
4199
4231
  }
4200
4232
  source ??= await readText(file);
4201
4233
  if (/\.mdx?$/.test(file) && nextCompatEnabled(config)) {
4202
- const { compileMdx } = await import("./compile-53j02j27.js");
4234
+ const { compileMdx } = await import("./compile-040r79gj.js");
4203
4235
  source = (await compileMdx(source, file, config.root)).code;
4204
4236
  }
4205
4237
  const transformedSource = rewriteServerSource(source, file, {
@@ -5030,7 +5062,7 @@ async function serverCssModuleSource(config, file) {
5030
5062
  const coreBuild = isReleaseCompile() && !reactCompatEnabled2(config);
5031
5063
  if (registered !== undefined || !coreBuild || !file.endsWith(".module.css"))
5032
5064
  return registered;
5033
- const { cssModuleMapping } = await import("./build-spy3dxp4.js");
5065
+ const { cssModuleMapping } = await import("./build-c991dv65.js");
5034
5066
  return `export default ${JSON.stringify(await cssModuleMapping(file))};`;
5035
5067
  }
5036
5068
  function isStaticImageFile(file) {
@@ -5228,7 +5260,7 @@ async function staticImageModuleSource(config, file) {
5228
5260
  const compat = await getAssetExtensions().staticAssetModule({ sourcePath, bytes, emit });
5229
5261
  const source = compat ?? coreStaticAssetModule(sourcePath, bytes, emit);
5230
5262
  for (const relative of emitted) {
5231
- const target = path4.join(config.outPath, "public", ...relative.split("/"));
5263
+ const target = path4.join(config.outPath, "static", ...relative.split("/"));
5232
5264
  await mkdir3(path4.dirname(target), { recursive: true });
5233
5265
  if (!existsSync3(target))
5234
5266
  await copyFile3(sourcePath, target);