@wular/pnext 0.1.9 → 0.1.10

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 (74) hide show
  1. package/dist/server/_chunks/{aliases-fhv4dt06.js → aliases-s49gt0bb.js} +5 -5
  2. package/dist/server/_chunks/{analyze-09kx9q6r.js → analyze-c45xjea8.js} +8 -8
  3. package/dist/server/_chunks/{boot-8aj7efqk.js → boot-exjk45ry.js} +8 -8
  4. package/dist/server/_chunks/{build-jda155c9.js → build-m49fem3j.js} +4 -4
  5. package/dist/server/_chunks/{build-wspv5h60.js → build-ntq282xh.js} +46 -26
  6. package/dist/server/_chunks/{build-tier-qrkpfsk1.js → build-tier-byqfyz34.js} +17 -17
  7. package/dist/server/_chunks/{config-d4hqyygy.js → config-1hdw96je.js} +2 -2
  8. package/dist/server/_chunks/{config-7h84p6q8.js → config-m2yaayer.js} +3 -3
  9. package/dist/server/_chunks/{create-skj8wzt5.js → create-k089tdt7.js} +3 -3
  10. package/dist/server/_chunks/{dev-pennd36n.js → dev-kwp1t8b3.js} +2 -2
  11. package/dist/server/_chunks/{generate-d8vb1d21.js → generate-ap2zs26g.js} +3 -3
  12. package/dist/server/_chunks/{index-yghskk8w.js → index-0f5t5730.js} +16 -13
  13. package/dist/server/_chunks/{index-xs3411qh.js → index-1q52cw31.js} +7 -7
  14. package/dist/server/_chunks/{index-cqcwwxfp.js → index-1tmqkr6x.js} +3 -3
  15. package/dist/server/_chunks/index-1xrvw3zp.js +92 -0
  16. package/dist/server/_chunks/{index-42fef2rv.js → index-4g6amwtg.js} +2 -2
  17. package/dist/server/_chunks/{index-47gx7trn.js → index-4hspm5ez.js} +1 -1
  18. package/dist/server/_chunks/{index-s61bx2aj.js → index-56jw1658.js} +2 -2
  19. package/dist/server/_chunks/{index-xrsg0041.js → index-6w807g31.js} +12 -4
  20. package/dist/server/_chunks/{index-jjppzw0s.js → index-72wjyacg.js} +2 -2
  21. package/dist/server/_chunks/{index-n814hcky.js → index-81qnfmzz.js} +1 -1
  22. package/dist/server/_chunks/{index-vqs3rebe.js → index-8hy8qskn.js} +3 -3
  23. package/dist/server/_chunks/{index-e176wk6x.js → index-8y2yft9b.js} +1 -1
  24. package/dist/server/_chunks/{index-aarf1brn.js → index-a4asdd4j.js} +1 -1
  25. package/dist/server/_chunks/{index-53fnn598.js → index-cqft8ae4.js} +7 -7
  26. package/dist/server/_chunks/{index-6tb725m8.js → index-dd4tb5vy.js} +1 -1
  27. package/dist/server/_chunks/{index-yzcpr3yw.js → index-drfxdvvh.js} +4 -4
  28. package/dist/server/_chunks/{index-4qsce64w.js → index-e63ma63t.js} +1 -1
  29. package/dist/server/_chunks/{index-jexsy9a8.js → index-ed6rwv1x.js} +1 -1
  30. package/dist/server/_chunks/{index-kpdph69z.js → index-f76517s5.js} +23 -23
  31. package/dist/server/_chunks/{index-0wm2p3ks.js → index-fdc7wz3a.js} +1 -1
  32. package/dist/server/_chunks/{index-912z4mfx.js → index-g39z5s9d.js} +3 -3
  33. package/dist/server/_chunks/{index-y9bygr95.js → index-hw5k2sgj.js} +1 -1
  34. package/dist/server/_chunks/{index-hr63fvzn.js → index-jh486fye.js} +1 -1
  35. package/dist/server/_chunks/{index-4vf121ws.js → index-mjvq5c7e.js} +8 -8
  36. package/dist/server/_chunks/{index-0qt2vapb.js → index-mph0cmh9.js} +3 -3
  37. package/dist/server/_chunks/{index-26gwrm07.js → index-nxg8k7cg.js} +2 -2
  38. package/dist/server/_chunks/{index-3r6qpe8a.js → index-p79ck9cd.js} +4 -4
  39. package/dist/server/_chunks/{index-fpghsgb4.js → index-pshjr3qm.js} +1 -1
  40. package/dist/server/_chunks/{index-1y0cesgn.js → index-r1kzsnyp.js} +4 -4
  41. package/dist/server/_chunks/{index-veycp46e.js → index-ra6fsg5v.js} +1 -1
  42. package/dist/server/_chunks/{index-y71a76dn.js → index-tgwt3kwf.js} +4 -4
  43. package/dist/server/_chunks/{index-zedjt25v.js → index-x3cvacmf.js} +4 -4
  44. package/dist/server/_chunks/{index-qjrh7w2g.js → index-zq077xjc.js} +1 -1
  45. package/dist/server/_chunks/{index-da0fphj0.js → index-zvy5134a.js} +5 -5
  46. package/dist/server/_chunks/{loader-w1e0n5sm.js → loader-5j9bjhw7.js} +6 -6
  47. package/dist/server/_chunks/{modules-730j14cm.js → modules-gy48pdw3.js} +8 -8
  48. package/dist/server/_chunks/{pipeline-yjdnwbhm.js → pipeline-m8ac90dn.js} +11 -11
  49. package/dist/server/_chunks/{production-1xe9b7wd.js → production-26vqtxvg.js} +1 -1
  50. package/dist/server/_chunks/{proxy-pnevsbfd.js → proxy-74a1mg4v.js} +7 -7
  51. package/dist/server/_chunks/{proxy-config-9r9e0jvn.js → proxy-config-7hnexa7b.js} +5 -5
  52. package/dist/server/_chunks/{router-rzge0vz8.js → router-frkywyzb.js} +4 -4
  53. package/dist/server/_chunks/{routes-0x8wjvcj.js → routes-y7de16ja.js} +7 -7
  54. package/dist/server/_chunks/{run-tk90r3ac.js → run-q8aq4cez.js} +4 -4
  55. package/dist/server/_chunks/{server-gev78ejc.js → server-21t1fzp7.js} +19 -19
  56. package/dist/server/_chunks/{tsconfig-defaults-qe9wd6ne.js → tsconfig-defaults-bcq068bd.js} +3 -3
  57. package/dist/server/_chunks/{typegen-0yw8sry8.js → typegen-wdqj67rx.js} +10 -10
  58. package/dist/server/cli/index.js +11 -11
  59. package/dist/server/cli/start.js +5 -5
  60. package/dist/server/compat/next/config-headers.js +4 -4
  61. package/dist/server/compat/next/font/cache.js +4 -4
  62. package/dist/server/compat/next/font/local.js +5 -5
  63. package/dist/server/compat/next/font/runtime.js +5 -5
  64. package/dist/server/compat/next/navigation.js +4 -4
  65. package/dist/server/compat/next/redirects.js +4 -4
  66. package/dist/server/compat/next/rewrites.js +3 -3
  67. package/dist/server/generation.json +1 -1
  68. package/package.json +1 -1
  69. package/src/cli/adapters/vercel-warm.ts +2 -1
  70. package/src/cli/adapters/vercel.ts +37 -1
  71. package/src/cli/serve/standalone.ts +14 -6
  72. package/src/css/assets.ts +9 -1
  73. package/src/render/renderer.ts +6 -3
  74. package/dist/server/_chunks/index-md5jchzy.js +0 -92
@@ -14,13 +14,13 @@ import {
14
14
  reactCompilerOptions,
15
15
  reactServerLayerAliases,
16
16
  rewriteNextFontSource
17
- } from "./index-0qt2vapb.js";
18
- import"./index-912z4mfx.js";
17
+ } from "./index-mph0cmh9.js";
18
+ import"./index-g39z5s9d.js";
19
19
  import"./index-6q7zvrap.js";
20
- import"./index-4qsce64w.js";
21
- import"./index-zedjt25v.js";
20
+ import"./index-e63ma63t.js";
21
+ import"./index-x3cvacmf.js";
22
22
  import"./index-bzd2ef7t.js";
23
- import"./index-fpghsgb4.js";
23
+ import"./index-pshjr3qm.js";
24
24
  import"./index-grta8ap3.js";
25
25
  import"./index-kresp2n8.js";
26
26
  import"./index-e3a6yx84.js";
@@ -1,30 +1,30 @@
1
1
  // @bun
2
- import"./index-3r6qpe8a.js";
2
+ import"./index-p79ck9cd.js";
3
3
  import"./index-0r5eqfc7.js";
4
4
  import {
5
5
  matchRoute
6
- } from "./index-aarf1brn.js";
7
- import"./index-1y0cesgn.js";
6
+ } from "./index-a4asdd4j.js";
7
+ import"./index-r1kzsnyp.js";
8
8
  import"./index-73z4esab.js";
9
9
  import {
10
10
  emittedAssetName,
11
11
  publishEmittedAssets,
12
12
  routeCssAssetNames
13
- } from "./index-xrsg0041.js";
13
+ } from "./index-6w807g31.js";
14
14
  import"./index-web361b8.js";
15
15
  import"./index-fp8r0sqs.js";
16
16
  import"./index-cjgqs13g.js";
17
- import"./index-veycp46e.js";
17
+ import"./index-ra6fsg5v.js";
18
18
  import {
19
19
  listFiles
20
- } from "./index-4qsce64w.js";
20
+ } from "./index-e63ma63t.js";
21
21
  import {
22
22
  loadConfig
23
- } from "./index-zedjt25v.js";
23
+ } from "./index-x3cvacmf.js";
24
24
  import"./index-bzd2ef7t.js";
25
25
  import {
26
26
  buildManifestFile
27
- } from "./index-fpghsgb4.js";
27
+ } from "./index-pshjr3qm.js";
28
28
  import {
29
29
  bold,
30
30
  cyan,
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  registerCompatBootExtensions
4
- } from "./index-xs3411qh.js";
4
+ } from "./index-1q52cw31.js";
5
5
  import"./index-2wfv4kvx.js";
6
6
  import"./index-wm36rj4v.js";
7
- import"./index-aarf1brn.js";
8
- import"./index-0qt2vapb.js";
9
- import"./index-vqs3rebe.js";
10
- import"./index-912z4mfx.js";
7
+ import"./index-a4asdd4j.js";
8
+ import"./index-mph0cmh9.js";
9
+ import"./index-8hy8qskn.js";
10
+ import"./index-g39z5s9d.js";
11
11
  import"./index-6q7zvrap.js";
12
12
  import"./index-z88qv16t.js";
13
13
  import"./index-2vz0wzdn.js";
@@ -18,11 +18,11 @@ import"./index-6b009mt0.js";
18
18
  import"./index-4zzebszd.js";
19
19
  import"./index-sq3kvz3g.js";
20
20
  import"./index-ckkdpht5.js";
21
- import"./index-4qsce64w.js";
22
- import"./index-zedjt25v.js";
21
+ import"./index-e63ma63t.js";
22
+ import"./index-x3cvacmf.js";
23
23
  import"./index-bzd2ef7t.js";
24
24
  import"./index-jcsjq3d1.js";
25
- import"./index-fpghsgb4.js";
25
+ import"./index-pshjr3qm.js";
26
26
  import"./index-grta8ap3.js";
27
27
  import"./index-kresp2n8.js";
28
28
  import"./index-e3a6yx84.js";
@@ -19,7 +19,7 @@ import {
19
19
  stopCssWorker,
20
20
  warmCssPipeline,
21
21
  warmCssWorker
22
- } from "./index-1y0cesgn.js";
22
+ } from "./index-r1kzsnyp.js";
23
23
  import"./index-73z4esab.js";
24
24
  import {
25
25
  assetHref,
@@ -35,13 +35,13 @@ import {
35
35
  routeCssAssetNames,
36
36
  routeCssHref,
37
37
  withAssetPrefix
38
- } from "./index-xrsg0041.js";
38
+ } from "./index-6w807g31.js";
39
39
  import"./index-web361b8.js";
40
40
  import"./index-fp8r0sqs.js";
41
41
  import"./index-cjgqs13g.js";
42
- import"./index-4qsce64w.js";
42
+ import"./index-e63ma63t.js";
43
43
  import"./index-bzd2ef7t.js";
44
- import"./index-fpghsgb4.js";
44
+ import"./index-pshjr3qm.js";
45
45
  import"./index-6kp9r0d9.js";
46
46
  import"./index-d1jsmhhk.js";
47
47
  import"./index-7wc9n8be.js";
@@ -10,10 +10,10 @@ import {
10
10
  buildClientEntries,
11
11
  emitStaticClientChunks,
12
12
  startClientSources
13
- } from "./index-53fnn598.js";
13
+ } from "./index-cqft8ae4.js";
14
14
  import {
15
15
  writeTypegen
16
- } from "./index-y71a76dn.js";
16
+ } from "./index-tgwt3kwf.js";
17
17
  import {
18
18
  handleRouteModule,
19
19
  staticRouteParams
@@ -23,13 +23,13 @@ import {
23
23
  assertNoServerActionsWithoutCompat,
24
24
  materializeRouteFacts,
25
25
  scanRoutes
26
- } from "./index-3r6qpe8a.js";
26
+ } from "./index-p79ck9cd.js";
27
27
  import {
28
28
  devServerModuleHref,
29
29
  resetModuleGraphFailure,
30
30
  setEmitCompiledSpecifiersManifest,
31
31
  setReleaseCompile
32
- } from "./index-4vf121ws.js";
32
+ } from "./index-mjvq5c7e.js";
33
33
  import"./index-n4hxpng2.js";
34
34
  import"./index-x3yn4ywm.js";
35
35
  import {
@@ -37,9 +37,9 @@ import {
37
37
  compiledSourceGraph,
38
38
  flushDevModuleCaches,
39
39
  registerServerRuntime
40
- } from "./index-da0fphj0.js";
40
+ } from "./index-zvy5134a.js";
41
41
  import"./index-0r5eqfc7.js";
42
- import"./index-n814hcky.js";
42
+ import"./index-81qnfmzz.js";
43
43
  import {
44
44
  clientEntryName,
45
45
  defaultNotFoundDocument,
@@ -61,21 +61,21 @@ import {
61
61
  staticParamsFor,
62
62
  staticRouteMetadataKey,
63
63
  withDynamicMetadataRoutes
64
- } from "./index-yghskk8w.js";
64
+ } from "./index-0f5t5730.js";
65
65
  import {
66
66
  findLayouts
67
- } from "./index-aarf1brn.js";
67
+ } from "./index-a4asdd4j.js";
68
68
  import {
69
69
  findProxyFile,
70
70
  proxyExternalLoadTarget,
71
71
  proxyRoutePatterns,
72
72
  validateProxyFiles
73
- } from "./index-vqs3rebe.js";
73
+ } from "./index-8hy8qskn.js";
74
74
  import {
75
75
  serverBundleTargetForRuntime,
76
76
  throwIfModuleGraphFailed
77
- } from "./index-912z4mfx.js";
78
- import"./index-42fef2rv.js";
77
+ } from "./index-g39z5s9d.js";
78
+ import"./index-4g6amwtg.js";
79
79
  import"./index-jbj7ehef.js";
80
80
  import {
81
81
  buildGlobalCss,
@@ -84,21 +84,21 @@ import {
84
84
  globalCssSources,
85
85
  prepareRouteCssChunks,
86
86
  warmCssPipeline
87
- } from "./index-1y0cesgn.js";
87
+ } from "./index-r1kzsnyp.js";
88
88
  import {
89
89
  createVerboseLogger
90
90
  } from "./index-73z4esab.js";
91
91
  import {
92
92
  emittedAssetNames,
93
93
  registerCssRuntime
94
- } from "./index-xrsg0041.js";
94
+ } from "./index-6w807g31.js";
95
95
  import {
96
96
  nextCompatEnabled
97
97
  } from "./index-web361b8.js";
98
98
  import"./index-knp0s912.js";
99
99
  import {
100
100
  frameworkFingerprint
101
- } from "./index-md5jchzy.js";
101
+ } from "./index-1xrvw3zp.js";
102
102
  import"./index-ye9hmsvf.js";
103
103
  import {
104
104
  setRequestRuntime
@@ -110,10 +110,10 @@ import {
110
110
  } from "./index-fp8r0sqs.js";
111
111
  import"./index-cjgqs13g.js";
112
112
  import"./index-yhxkxghe.js";
113
- import"./index-jjppzw0s.js";
113
+ import"./index-72wjyacg.js";
114
114
  import {
115
115
  interceptionMarkerLevels
116
- } from "./index-veycp46e.js";
116
+ } from "./index-ra6fsg5v.js";
117
117
  import {
118
118
  ensureEmptyDir,
119
119
  listFiles,
@@ -123,7 +123,7 @@ import {
123
123
  toPosixPath,
124
124
  writeFileAtomic,
125
125
  writeText
126
- } from "./index-4qsce64w.js";
126
+ } from "./index-e63ma63t.js";
127
127
  import {
128
128
  cacheRoot,
129
129
  namedBunBinary
@@ -131,13 +131,13 @@ import {
131
131
  import"./index-vz0km5qk.js";
132
132
  import {
133
133
  bootstrapCompat
134
- } from "./index-yzcpr3yw.js";
134
+ } from "./index-drfxdvvh.js";
135
135
  import {
136
136
  devOutSegment,
137
137
  frameworkRuntimeSpecifiers,
138
138
  loadConfig,
139
139
  pathToFileHref
140
- } from "./index-zedjt25v.js";
140
+ } from "./index-x3cvacmf.js";
141
141
  import {
142
142
  outCachePath
143
143
  } from "./index-bzd2ef7t.js";
@@ -146,12 +146,11 @@ import {
146
146
  PREBUNDLE_STAMP,
147
147
  buildIndexFile,
148
148
  buildManifestFile,
149
- prebundledFile,
150
149
  readBuildIndex,
151
150
  readPrebundleStamp,
152
151
  releaseSourceFile,
153
152
  standaloneOriginsFile
154
- } from "./index-fpghsgb4.js";
153
+ } from "./index-pshjr3qm.js";
155
154
  import {
156
155
  bold,
157
156
  cyan,
@@ -229,10 +228,12 @@ async function writeVercelOutput(config, manifest, options = {}) {
229
228
  await writeServerFunction(config.outPath, manifest, functionPath, log);
230
229
  await log.step("copy static files", () => copyStaticFiles(staticPath, path.join(outputPath, "static"), (relative) => !staticFiles[relative] || canServeStaticOnVercel(staticFiles[relative])));
231
230
  const overrides = await staticOverrides(staticPath, staticFiles);
231
+ const proxy = await proxyRoutes(config);
232
+ await log.step("drop public files from the function", () => dropPublicFiles(config.publicPath, path.join(functionPath, "static"), staticFiles, proxy.map((route) => new RegExp(route.src)), config.basePath));
232
233
  const routes = [
233
234
  ...compatStaticRewrite(config, outputPath),
234
235
  ...await immutableAssetRoutes(staticPath, manifest.publicAssets),
235
- ...await proxyRoutes(config),
236
+ ...proxy,
236
237
  ...staticHeaderRoutes(staticFiles),
237
238
  { handle: "filesystem" },
238
239
  { src: "^/.*$", dest: `/${SERVER_FUNCTION}` }
@@ -510,6 +511,19 @@ var functionOnlyHeaders = new Set([
510
511
  "connection",
511
512
  "set-cookie"
512
513
  ]);
514
+ async function dropPublicFiles(publicDir, dir, staticFiles, proxied, basePath) {
515
+ const publicFiles = existsSync(publicDir) ? await listFiles(publicDir) : [];
516
+ const dropped = publicFiles.map((source) => toPosixPath(path.relative(publicDir, source))).filter((relative) => {
517
+ const metadata = staticFiles[relative];
518
+ if (relative.endsWith(".html") || metadata && !canServeStaticOnVercel(metadata))
519
+ return false;
520
+ if (requestPath(relative) !== relative)
521
+ return false;
522
+ const paths = [`/${relative}`, `${basePath}/${relative}`];
523
+ return !proxied.some((src) => paths.some((pathname) => src.test(pathname)));
524
+ });
525
+ await Promise.all(dropped.map((relative) => rm(path.join(dir, relative), { force: true })));
526
+ }
513
527
  function canServeStaticOnVercel(metadata) {
514
528
  if (metadata.status !== 200)
515
529
  return false;
@@ -962,8 +976,12 @@ var runtimeDependencies = new Set(Object.keys(frameworkPackage.dependencies ?? {
962
976
  var buildOnlyModule = /^(?:build|modules|loader|compile|esbuild|dev|run|typegen|analyze|create)$/;
963
977
  var builtins = new Set(builtinModules);
964
978
  var scriptFile = /\.(?:[cm]?[jt]sx?)$/;
979
+ var prebundled;
980
+ function servesPrebundle() {
981
+ return prebundled ??= readPrebundleStamp(frameworkRoot2, frameworkFingerprint()) !== undefined;
982
+ }
965
983
  function frameworkStartEntry() {
966
- return readPrebundleStamp(frameworkRoot2, frameworkFingerprint()) ? path4.join(frameworkRoot2, "dist", "server", "cli", "start.js") : path4.join(frameworkRoot2, "src", "cli", "start.ts");
984
+ return servesPrebundle() ? path4.join(frameworkRoot2, "dist", "server", "cli", "start.js") : path4.join(frameworkRoot2, "src", "cli", "start.ts");
967
985
  }
968
986
  function startStandalone(config) {
969
987
  const input = {
@@ -1399,10 +1417,12 @@ function resolveEdge(specifier, from, require2 = false) {
1399
1417
  return target;
1400
1418
  }
1401
1419
  function frameworkCounterparts(file) {
1402
- const counterpart = prebundledFile(file);
1403
- if (counterpart === file)
1420
+ const src = path4.join(frameworkRoot2, "src");
1421
+ if (!servesPrebundle() || !isInside(src, file))
1404
1422
  return [];
1405
- return [counterpart, path4.join(frameworkRoot2, PREBUNDLE_STAMP)];
1423
+ const relative = path4.relative(src, file).replace(/\.tsx?$/, ".js");
1424
+ const counterpart = path4.join(frameworkRoot2, "dist", "server", relative);
1425
+ return existsSync4(counterpart) ? [counterpart, path4.join(frameworkRoot2, PREBUNDLE_STAMP)] : [];
1406
1426
  }
1407
1427
  function moduleName(file) {
1408
1428
  const base = path4.basename(file, path4.extname(file));
@@ -14,37 +14,37 @@ import {
14
14
  treeSegmentFile,
15
15
  validateBuild,
16
16
  warnNextMetadataBuildIssues
17
- } from "./index-qjrh7w2g.js";
17
+ } from "./index-zq077xjc.js";
18
18
  import {
19
19
  writeTsconfigDefaults
20
- } from "./index-0wm2p3ks.js";
20
+ } from "./index-fdc7wz3a.js";
21
21
  import {
22
22
  generateTypedRoutes
23
- } from "./index-6tb725m8.js";
23
+ } from "./index-dd4tb5vy.js";
24
24
  import {
25
25
  scanRootParamTypes
26
26
  } from "./index-v1ags1na.js";
27
27
  import {
28
28
  discoverStaticMetadataFiles
29
- } from "./index-yghskk8w.js";
29
+ } from "./index-0f5t5730.js";
30
30
  import {
31
31
  deploymentId,
32
32
  turbopackLoaderRules
33
33
  } from "./index-wm36rj4v.js";
34
- import"./index-aarf1brn.js";
34
+ import"./index-a4asdd4j.js";
35
35
  import {
36
36
  nextCompatEnabled,
37
37
  reactCompatEnabled,
38
38
  reactCompilerOptions
39
- } from "./index-0qt2vapb.js";
39
+ } from "./index-mph0cmh9.js";
40
40
  import {
41
41
  findProxyFile,
42
42
  proxyExternalLoadTarget
43
- } from "./index-vqs3rebe.js";
43
+ } from "./index-8hy8qskn.js";
44
44
  import {
45
45
  devServerModuleHref
46
- } from "./index-912z4mfx.js";
47
- import"./index-xrsg0041.js";
46
+ } from "./index-g39z5s9d.js";
47
+ import"./index-6w807g31.js";
48
48
  import"./index-web361b8.js";
49
49
  import {
50
50
  preferredRegionForRoute
@@ -52,10 +52,10 @@ import {
52
52
  import {
53
53
  fontLinkHeaderValue,
54
54
  takeFontHeaderPreloads
55
- } from "./index-26gwrm07.js";
56
- import"./index-s61bx2aj.js";
55
+ } from "./index-nxg8k7cg.js";
56
+ import"./index-56jw1658.js";
57
57
  import"./index-knp0s912.js";
58
- import"./index-md5jchzy.js";
58
+ import"./index-1xrvw3zp.js";
59
59
  import"./index-fn1chkkd.js";
60
60
  import"./index-ye9hmsvf.js";
61
61
  import"./index-6q7zvrap.js";
@@ -92,19 +92,19 @@ import {
92
92
  emitCustomServerShim
93
93
  } from "./index-8kcxdfya.js";
94
94
  import"./index-yhxkxghe.js";
95
- import"./index-jjppzw0s.js";
96
- import"./index-veycp46e.js";
95
+ import"./index-72wjyacg.js";
96
+ import"./index-ra6fsg5v.js";
97
97
  import {
98
98
  listFiles,
99
99
  toPosixPath
100
- } from "./index-4qsce64w.js";
100
+ } from "./index-e63ma63t.js";
101
101
  import"./index-vz0km5qk.js";
102
102
  import {
103
103
  pathToFileHref
104
- } from "./index-zedjt25v.js";
104
+ } from "./index-x3cvacmf.js";
105
105
  import"./index-bzd2ef7t.js";
106
106
  import"./index-jcsjq3d1.js";
107
- import"./index-fpghsgb4.js";
107
+ import"./index-pshjr3qm.js";
108
108
  import"./index-ras0sdab.js";
109
109
  import {
110
110
  legacyRequestAPIs
@@ -9,12 +9,12 @@ import {
9
9
  pnextAliases,
10
10
  publicEnvDefines,
11
11
  registerConfigSource
12
- } from "./index-zedjt25v.js";
12
+ } from "./index-x3cvacmf.js";
13
13
  import {
14
14
  outCachePath,
15
15
  standaloneOutSegment
16
16
  } from "./index-bzd2ef7t.js";
17
- import"./index-fpghsgb4.js";
17
+ import"./index-pshjr3qm.js";
18
18
  import"./index-grta8ap3.js";
19
19
  import"./index-kresp2n8.js";
20
20
  import"./index-e3a6yx84.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  registerConfigSource
4
- } from "./index-47gx7trn.js";
4
+ } from "./index-4hspm5ez.js";
5
5
  import"./index-m63czgq5.js";
6
6
  import"./index-cjgqs13g.js";
7
7
  import"./index-jks0x0a1.js";
@@ -9,9 +9,9 @@ import"./index-6b009mt0.js";
9
9
  import"./index-4zzebszd.js";
10
10
  import"./index-sq3kvz3g.js";
11
11
  import"./index-ckkdpht5.js";
12
- import"./index-zedjt25v.js";
12
+ import"./index-x3cvacmf.js";
13
13
  import"./index-bzd2ef7t.js";
14
- import"./index-fpghsgb4.js";
14
+ import"./index-pshjr3qm.js";
15
15
  import"./index-grta8ap3.js";
16
16
  import"./index-kresp2n8.js";
17
17
  import"./index-e3a6yx84.js";
@@ -3,12 +3,12 @@ import { join as __pnextJoin } from "node:path";
3
3
  const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
4
4
  import {
5
5
  latestPnextVersionRange
6
- } from "./index-hr63fvzn.js";
6
+ } from "./index-jh486fye.js";
7
7
  import {
8
8
  formatDuration
9
9
  } from "./index-73z4esab.js";
10
- import"./index-4qsce64w.js";
11
- import"./index-fpghsgb4.js";
10
+ import"./index-e63ma63t.js";
11
+ import"./index-pshjr3qm.js";
12
12
  import {
13
13
  bold,
14
14
  cyan,
@@ -35,8 +35,8 @@ function nameDevProcess() {
35
35
  async function dev(options = {}) {
36
36
  nameDevProcess();
37
37
  const [{ loadConfig }, { startDevServer }] = await Promise.all([
38
- import("./config-d4hqyygy.js"),
39
- import("./server-gev78ejc.js")
38
+ import("./config-1hdw96je.js"),
39
+ import("./server-21t1fzp7.js")
40
40
  ]);
41
41
  markBoot("dev:imports");
42
42
  const config = await loadConfig(options.root, { dev: true });
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  generateTypedRoutes
4
- } from "./index-6tb725m8.js";
4
+ } from "./index-dd4tb5vy.js";
5
5
  import"./index-v1ags1na.js";
6
6
  import"./index-m63czgq5.js";
7
7
  import"./index-cjgqs13g.js";
@@ -10,8 +10,8 @@ import"./index-6b009mt0.js";
10
10
  import"./index-4zzebszd.js";
11
11
  import"./index-sq3kvz3g.js";
12
12
  import"./index-ckkdpht5.js";
13
- import"./index-4qsce64w.js";
14
- import"./index-fpghsgb4.js";
13
+ import"./index-e63ma63t.js";
14
+ import"./index-pshjr3qm.js";
15
15
  import"./index-kresp2n8.js";
16
16
  import"./index-e3a6yx84.js";
17
17
  import"./index-7wc9n8be.js";
@@ -4,7 +4,7 @@ import {
4
4
  findGlobalError,
5
5
  findLayouts,
6
6
  serverActionsUnsupportedMessage
7
- } from "./index-aarf1brn.js";
7
+ } from "./index-a4asdd4j.js";
8
8
  import {
9
9
  devClientModuleHref,
10
10
  devServerModuleHref,
@@ -13,7 +13,7 @@ import {
13
13
  importModuleOnce,
14
14
  registerServerRuntime,
15
15
  serverBundleTargetForRuntime
16
- } from "./index-912z4mfx.js";
16
+ } from "./index-g39z5s9d.js";
17
17
  import {
18
18
  assetHref,
19
19
  emitFontCssStylesheet,
@@ -23,7 +23,7 @@ import {
23
23
  routeCssAssetNames,
24
24
  routeCssHref,
25
25
  withAssetPrefix
26
- } from "./index-xrsg0041.js";
26
+ } from "./index-6w807g31.js";
27
27
  import {
28
28
  getActionModuleExtensions,
29
29
  getActiveMetadataExtensions,
@@ -72,23 +72,23 @@ import {
72
72
  runInParamsScope,
73
73
  serializeProps,
74
74
  slotBoundarySymbol
75
- } from "./index-jjppzw0s.js";
75
+ } from "./index-72wjyacg.js";
76
76
  import {
77
77
  matchSegments,
78
78
  pathnameSegments,
79
79
  slotDirectoriesIn
80
- } from "./index-veycp46e.js";
80
+ } from "./index-ra6fsg5v.js";
81
81
  import {
82
82
  pnextVersionRange,
83
83
  readText,
84
84
  toPosixPath
85
- } from "./index-4qsce64w.js";
85
+ } from "./index-e63ma63t.js";
86
86
  import {
87
87
  traceEnabled
88
88
  } from "./index-vz0km5qk.js";
89
89
  import {
90
90
  pathToFileHref
91
- } from "./index-zedjt25v.js";
91
+ } from "./index-x3cvacmf.js";
92
92
  import {
93
93
  markErrorLogged
94
94
  } from "./index-jcsjq3d1.js";
@@ -98,7 +98,7 @@ import {
98
98
  servedAppFiles,
99
99
  servedConventions,
100
100
  servedRelease
101
- } from "./index-fpghsgb4.js";
101
+ } from "./index-pshjr3qm.js";
102
102
  import {
103
103
  clientReferenceId,
104
104
  clientReferenceSymbol,
@@ -2181,7 +2181,7 @@ async function importClientModule(file, options) {
2181
2181
  }
2182
2182
  async function syntheticRouteCss(config, id, scan) {
2183
2183
  if (!productionRelease(config))
2184
- return scan(await import("./routes-0x8wjvcj.js"));
2184
+ return scan(await import("./routes-y7de16ja.js"));
2185
2185
  const name = `${id}.css`;
2186
2186
  return emittedAssetName(config, name) === name ? [] : [name];
2187
2187
  }
@@ -3949,12 +3949,15 @@ async function renderTreeInFrame(options, tree, stream, pageMetadata = {}, extra
3949
3949
  ...fonts.css ? { prependCss: fonts.css } : {},
3950
3950
  ...nonce ? { nonce } : {}
3951
3951
  }));
3952
+ let fontStyle = "";
3952
3953
  if (!inlineStylesheets && fonts.css) {
3953
3954
  const fontAsset = await profileRenderStep(profile, "font stylesheet", () => emitFontCssStylesheet(options.config, options.route.id, fonts.css, stylesheetAssets[0], {
3954
3955
  dev: Boolean(options.dev)
3955
3956
  }));
3956
- const fontHref = assetHref(options.config, fontAsset);
3957
- if (globalStylesheet)
3957
+ const fontHref = fontAsset && assetHref(options.config, fontAsset);
3958
+ if (!fontHref)
3959
+ fontStyle = `<style${nonce ? ` nonce="${escapeHtml(nonce)}"` : ""}>${fonts.css}</style>`;
3960
+ else if (globalStylesheet)
3958
3961
  globalStylesheet = fontHref;
3959
3962
  else if (Array.isArray(routeStylesheet))
3960
3963
  routeStylesheet = [fontHref, ...routeStylesheet.slice(1)];
@@ -3979,8 +3982,8 @@ async function renderTreeInFrame(options, tree, stream, pageMetadata = {}, extra
3979
3982
  const bootstrapScripts = modulePreloads.map((src) => `<script async type="module" src="${escapeHtml(src)}"></script>`).join(`
3980
3983
  `);
3981
3984
  const compatBuildManifestScript = nextCompatEnabled(options.config) && !options.dev ? `<script src="${escapeHtml(withAssetPrefix(options.config, "/_next/static/pnext/_buildManifest.js"))}"></script>` : "";
3982
- const headStyles = inlineStylesheets?.join(`
3983
- `) ?? "";
3985
+ const headStyles = [fontStyle, ...inlineStylesheets ?? []].filter(Boolean).join(`
3986
+ `);
3984
3987
  const headScripts = profileRenderSyncStep(profile, "head scripts", () => [
3985
3988
  renderCollectedHeadScripts(),
3986
3989
  bootstrapScripts,
@@ -8,7 +8,7 @@ import {
8
8
  } from "./index-wm36rj4v.js";
9
9
  import {
10
10
  selectRouteForRequest
11
- } from "./index-aarf1brn.js";
11
+ } from "./index-a4asdd4j.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-0qt2vapb.js";
20
+ } from "./index-mph0cmh9.js";
21
21
  import {
22
22
  findProxyFiles
23
- } from "./index-vqs3rebe.js";
23
+ } from "./index-8hy8qskn.js";
24
24
  import {
25
25
  getRequestRuntime
26
26
  } from "./index-z88qv16t.js";
@@ -35,13 +35,13 @@ import {
35
35
  } from "./index-cjgqs13g.js";
36
36
  import {
37
37
  cssModuleScopePath
38
- } from "./index-4qsce64w.js";
38
+ } from "./index-e63ma63t.js";
39
39
  import {
40
40
  markErrorLogged
41
41
  } from "./index-jcsjq3d1.js";
42
42
  import {
43
43
  productionRelease
44
- } from "./index-fpghsgb4.js";
44
+ } from "./index-pshjr3qm.js";
45
45
  import {
46
46
  getWorkUnit
47
47
  } from "./index-grta8ap3.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-jda155c9.js"))).hoistCssImports(readFileSync(source, "utf8"));
173
+ const raw = (await (cssBuild ??= import("./build-m49fem3j.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-pnevsbfd.js");
1294
+ const { registerProxyExtensions } = await import("./proxy-74a1mg4v.js");
1295
1295
  registerProxyExtensions(config);
1296
1296
  await getProxyExtensions().validateFiles(config);
1297
1297
  }