@wular/pnext 0.1.7 → 0.1.9
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.
- package/dist/server/_chunks/{aliases-j47a10ce.js → aliases-fhv4dt06.js} +7 -5
- package/dist/server/_chunks/{analyze-arswqe6s.js → analyze-09kx9q6r.js} +17 -13
- package/dist/server/_chunks/{boot-af0mv3dy.js → boot-8aj7efqk.js} +13 -11
- package/dist/server/_chunks/{build-spy3dxp4.js → build-jda155c9.js} +7 -5
- package/dist/server/_chunks/{build-tier-m7yvqz61.js → build-tier-qrkpfsk1.js} +59 -75
- package/dist/server/_chunks/{build-t9h0hec3.js → build-wspv5h60.js} +1004 -1191
- package/dist/server/_chunks/{compile-53j02j27.js → compile-040r79gj.js} +2 -2
- package/dist/server/_chunks/{config-n2z7yxps.js → config-7h84p6q8.js} +6 -4
- package/dist/server/_chunks/{config-1yzwexq6.js → config-d4hqyygy.js} +12 -3
- package/dist/server/_chunks/{create-meec9hs6.js → create-skj8wzt5.js} +4 -3
- package/dist/server/_chunks/{dev-fjmqg6en.js → dev-pennd36n.js} +2 -2
- package/dist/server/_chunks/{generate-n9sh6hzt.js → generate-d8vb1d21.js} +5 -4
- package/dist/server/_chunks/{index-eeaanp2e.js → index-0qt2vapb.js} +3 -3
- package/dist/server/_chunks/{index-91x12ykq.js → index-0r5eqfc7.js} +6 -1
- package/dist/server/_chunks/{index-9ych9ma8.js → index-0wm2p3ks.js} +2 -2
- package/dist/server/_chunks/{index-357na4a8.js → index-141vcwk6.js} +1 -1
- package/dist/server/_chunks/{index-2dv4y4wd.js → index-1y0cesgn.js} +16 -10
- package/dist/server/_chunks/{index-ytjvpbm2.js → index-26gwrm07.js} +3 -3
- package/dist/server/_chunks/{index-8k7pfejn.js → index-3r6qpe8a.js} +7 -7
- package/dist/server/_chunks/{index-rn8dyr1f.js → index-42fef2rv.js} +8 -48
- package/dist/server/_chunks/{index-ncnes8c6.js → index-47gx7trn.js} +2 -2
- package/dist/server/_chunks/{index-20ppawv7.js → index-4qsce64w.js} +3 -3
- package/dist/server/_chunks/{index-1011cscr.js → index-4vf121ws.js} +61 -29
- package/dist/server/_chunks/{index-cf4rvxv6.js → index-52k54ykj.js} +1 -1
- package/dist/server/_chunks/{index-nyrba2kr.js → index-53fnn598.js} +11 -11
- package/dist/server/_chunks/{index-4hgjrqh7.js → index-6tb725m8.js} +2 -2
- package/dist/server/_chunks/{index-3xbr4eyv.js → index-912z4mfx.js} +3 -3
- package/dist/server/_chunks/{index-sjpckxqn.js → index-9f49w76j.js} +1 -1
- package/dist/server/_chunks/{index-jepjvcrf.js → index-aarf1brn.js} +1 -1
- package/dist/server/_chunks/{index-9n2914ww.js → index-akkrvjn6.js} +1 -1
- package/dist/server/_chunks/index-bzd2ef7t.js +10 -0
- package/dist/server/_chunks/{index-sv8m6789.js → index-cqcwwxfp.js} +5 -5
- package/dist/server/_chunks/{index-yz54pxrh.js → index-d1jsmhhk.js} +4 -9
- package/dist/server/_chunks/{index-vvmmknm1.js → index-da0fphj0.js} +19 -15
- package/dist/server/_chunks/{index-sctcgyvv.js → index-drwv61cc.js} +2 -2
- package/dist/server/_chunks/{index-z84ab1w0.js → index-e176wk6x.js} +3 -3
- package/dist/server/_chunks/{index-9hx2641q.js → index-entm8bmz.js} +1 -1
- package/dist/server/_chunks/index-fpghsgb4.js +352 -0
- package/dist/server/_chunks/{index-jx7bqvw1.js → index-hr63fvzn.js} +1 -1
- package/dist/server/_chunks/{index-eajaspjk.js → index-j0m1jxqa.js} +1 -1
- package/dist/server/_chunks/index-jbj7ehef.js +50 -0
- package/dist/server/_chunks/{index-egykcqg3.js → index-jexsy9a8.js} +1 -1
- package/dist/server/_chunks/{index-fkp000p1.js → index-jjppzw0s.js} +2 -2
- package/dist/server/_chunks/index-jt8e1pje.js +12 -0
- package/dist/server/_chunks/{index-ggk2j965.js → index-kpdph69z.js} +56 -50
- package/dist/server/_chunks/{index-6e4fqv30.js → index-m63czgq5.js} +2 -0
- package/dist/server/_chunks/{index-c0g2wf3z.js → index-md5jchzy.js} +1 -1
- package/dist/server/_chunks/{index-tvqkq6e6.js → index-n814hcky.js} +1 -1
- package/dist/server/_chunks/{index-06nyqntx.js → index-q3r9z8mq.js} +1 -1
- package/dist/server/_chunks/{index-4q2gbfwk.js → index-qjrh7w2g.js} +2 -2
- package/dist/server/_chunks/{index-3b3at80h.js → index-s61bx2aj.js} +6 -3
- package/dist/server/_chunks/{index-ym67zqxp.js → index-tf4j19ge.js} +1 -1
- package/dist/server/_chunks/{index-qn4z5s3c.js → index-typcbcsv.js} +3 -3
- package/dist/server/_chunks/{index-p77b4kcx.js → index-veycp46e.js} +1 -1
- package/dist/server/_chunks/{index-11sfk4hb.js → index-vmr35jjw.js} +1 -1
- package/dist/server/_chunks/{index-kq8kpzye.js → index-vqs3rebe.js} +3 -3
- package/dist/server/_chunks/{index-danncfhy.js → index-wm36rj4v.js} +1 -1
- package/dist/server/_chunks/{index-z4z9zv3b.js → index-x9c55pzy.js} +141 -3
- package/dist/server/_chunks/{index-y2jr2n72.js → index-xrsg0041.js} +4 -4
- package/dist/server/_chunks/{index-k1g3epw0.js → index-xs3411qh.js} +10 -10
- package/dist/server/_chunks/{index-0374j2b9.js → index-y4d02znn.js} +1 -1
- package/dist/server/_chunks/{index-wpfhfbs4.js → index-y71a76dn.js} +4 -4
- package/dist/server/_chunks/{index-qm6kmhqs.js → index-y7mzvq2q.js} +1 -1
- package/dist/server/_chunks/{index-hkdfj58q.js → index-y9bygr95.js} +1 -1
- package/dist/server/_chunks/{index-3tf1xjsp.js → index-yghskk8w.js} +11 -11
- package/dist/server/_chunks/{index-5gyr4emz.js → index-yzcpr3yw.js} +4 -4
- package/dist/server/_chunks/{index-x93hv0sc.js → index-zedjt25v.js} +23 -10
- package/dist/server/_chunks/{index-tq0pc7eg.js → index-zfrwq472.js} +3 -3
- package/dist/server/_chunks/{loader-7yw0j98z.js → loader-w1e0n5sm.js} +12 -10
- package/dist/server/_chunks/{modules-jn8bmbn8.js → modules-730j14cm.js} +14 -12
- package/dist/server/_chunks/{pipeline-yy9jhydf.js → pipeline-yjdnwbhm.js} +25 -21
- package/dist/server/_chunks/{production-jar9ztm3.js → production-1xe9b7wd.js} +14 -3
- package/dist/server/_chunks/{proxy-config-j84dgksn.js → proxy-config-9r9e0jvn.js} +7 -5
- package/dist/server/_chunks/{proxy-w1d0wmsn.js → proxy-pnevsbfd.js} +12 -10
- package/dist/server/_chunks/{router-k1reahfn.js → router-rzge0vz8.js} +10 -7
- package/dist/server/_chunks/{routes-2s277fc6.js → routes-0x8wjvcj.js} +12 -10
- package/dist/server/_chunks/{run-pvd8bs1t.js → run-tk90r3ac.js} +5 -4
- package/dist/server/_chunks/{server-mt4a994c.js → server-gev78ejc.js} +38 -34
- package/dist/server/_chunks/{tsconfig-defaults-1nb3308g.js → tsconfig-defaults-qe9wd6ne.js} +5 -4
- package/dist/server/_chunks/{typegen-0qr0459b.js → typegen-0yw8sry8.js} +15 -13
- package/dist/server/cli/index.js +12 -15
- package/dist/server/cli/start.js +35 -14
- package/dist/server/compat/next/cache.js +5 -5
- package/dist/server/compat/next/config-headers.js +8 -6
- package/dist/server/compat/next/config-loader.js +1 -1
- package/dist/server/compat/next/dist/server/web/spec-extension/revalidate.js +5 -5
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-cache.js +5 -5
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-no-store.js +5 -5
- package/dist/server/compat/next/dynamic.js +3 -14
- package/dist/server/compat/next/font/cache.js +6 -4
- package/dist/server/compat/next/font/local.js +7 -5
- package/dist/server/compat/next/font/runtime.js +7 -5
- package/dist/server/compat/next/headers.js +4 -4
- package/dist/server/compat/next/image/config.js +2 -2
- package/dist/server/compat/next/image/optimizer.js +3 -3
- package/dist/server/compat/next/image/static-metadata.js +4 -4
- package/dist/server/compat/next/legacy-request-apis.js +3 -3
- package/dist/server/compat/next/link-transform.js +4 -3
- package/dist/server/compat/next/navigation.js +5 -4
- package/dist/server/compat/next/redirects.js +8 -6
- package/dist/server/compat/next/resource-hints.js +2 -2
- package/dist/server/compat/next/rewrites.js +7 -5
- package/dist/server/compat/next/root-params.js +3 -3
- package/dist/server/compat/next/route-state.js +2 -2
- package/dist/server/compat/next/script.js +2 -2
- package/dist/server/compat/next/server.js +5 -5
- package/dist/server/generation.json +1 -1
- package/package.json +1 -1
- package/reference/compat.md +1 -1
- package/reference/config.md +2 -2
- package/reference/dev.md +1 -1
- package/reference/getting-started.md +1 -1
- package/reference/rendering.md +4 -4
- package/src/api/dynamic.tsx +84 -4
- package/src/cli/adapters/vercel-warm.ts +40 -29
- package/src/cli/adapters/vercel.ts +101 -1265
- package/src/cli/analyze.ts +3 -2
- package/src/cli/build/cache.ts +6 -6
- package/src/cli/build.ts +33 -33
- package/src/cli/index.ts +4 -6
- package/src/cli/serve/pipeline.ts +16 -10
- package/src/cli/serve/standalone-worker.ts +8 -0
- package/src/cli/serve/standalone.ts +727 -0
- package/src/cli/start.ts +29 -8
- package/src/client/build.ts +1 -1
- package/src/client/reference-stub.ts +2 -34
- package/src/compat/actions/extensions.ts +3 -2
- package/src/compat/bundler/require-context.ts +2 -1
- package/src/compat/bundler/webpack-loaders.ts +3 -2
- package/src/compat/bundler/worker.ts +2 -2
- package/src/compat/css/inline-css.ts +1 -1
- package/src/compat/export/build-complete.ts +1 -1
- package/src/compat/export/emit.ts +4 -4
- package/src/compat/export/standalone.ts +30 -65
- package/src/compat/image-optimizer/optimize.ts +1 -1
- package/src/compat/lifecycle/instrumentation-client.ts +4 -3
- package/src/compat/metadata-artifacts.ts +1 -1
- package/src/compat/next/config-loader.ts +3 -0
- package/src/compat/next/dynamic.tsx +10 -23
- package/src/compat/next/font/cache.ts +2 -1
- package/src/compat/next/font/runtime.ts +1 -1
- package/src/compat/register/image.ts +1 -1
- package/src/compat/typecheck/check.ts +6 -4
- package/src/config.ts +28 -5
- package/src/css/assets.ts +1 -1
- package/src/css/build.ts +16 -9
- package/src/dev/client-chunk-store.ts +2 -1
- package/src/dev/restart/client-key.ts +2 -1
- package/src/dev/restart/global-css.ts +2 -1
- package/src/dev/restart/route-bundle-key.ts +2 -1
- package/src/dev/restart/route-facts.ts +2 -1
- package/src/dev/server.ts +8 -7
- package/src/out-paths.ts +10 -0
- package/src/render/renderer.ts +1 -1
- package/src/resolve/dynamic.ts +4 -0
- package/src/resolve/engine.ts +2 -12
- package/src/resolve/scan-facts.ts +185 -1
- package/src/routing/metadata-files.ts +1 -1
- package/src/runtime/loader.ts +5 -3
- package/src/runtime/module-cache.ts +2 -1
- package/src/runtime/modules.ts +50 -16
- package/src/runtime/prebundle.ts +23 -3
- package/src/runtime/production.ts +105 -40
- package/src/runtime/release-graph.ts +21 -13
- package/src/runtime/vendor-build.ts +45 -23
- package/src/types.ts +2 -3
- package/src/utils/directive.ts +40 -0
- package/src/utils/fs.ts +7 -2
- package/src/utils/resource-query.ts +12 -0
- package/dist/server/_chunks/index-tqn2qnnn.js +0 -241
- package/dist/server/_chunks/index-y36a0ybw.js +0 -57
- package/src/cli/serve/entry.ts +0 -52
|
@@ -14,16 +14,18 @@ import {
|
|
|
14
14
|
reactCompilerOptions,
|
|
15
15
|
reactServerLayerAliases,
|
|
16
16
|
rewriteNextFontSource
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
} from "./index-0qt2vapb.js";
|
|
18
|
+
import"./index-912z4mfx.js";
|
|
19
19
|
import"./index-6q7zvrap.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
import"./index-4qsce64w.js";
|
|
21
|
+
import"./index-zedjt25v.js";
|
|
22
|
+
import"./index-bzd2ef7t.js";
|
|
23
|
+
import"./index-fpghsgb4.js";
|
|
23
24
|
import"./index-grta8ap3.js";
|
|
24
25
|
import"./index-kresp2n8.js";
|
|
25
26
|
import"./index-e3a6yx84.js";
|
|
26
27
|
import"./index-pym1cezq.js";
|
|
28
|
+
import"./index-jt8e1pje.js";
|
|
27
29
|
import"./index-qjj6gddn.js";
|
|
28
30
|
import"./index-rt9qq1va.js";
|
|
29
31
|
export {
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./index-
|
|
3
|
-
import"./index-
|
|
2
|
+
import"./index-3r6qpe8a.js";
|
|
3
|
+
import"./index-0r5eqfc7.js";
|
|
4
4
|
import {
|
|
5
5
|
matchRoute
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-aarf1brn.js";
|
|
7
|
+
import"./index-1y0cesgn.js";
|
|
8
8
|
import"./index-73z4esab.js";
|
|
9
9
|
import {
|
|
10
10
|
emittedAssetName,
|
|
11
11
|
publishEmittedAssets,
|
|
12
12
|
routeCssAssetNames
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-xrsg0041.js";
|
|
14
14
|
import"./index-web361b8.js";
|
|
15
15
|
import"./index-fp8r0sqs.js";
|
|
16
16
|
import"./index-cjgqs13g.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-veycp46e.js";
|
|
18
18
|
import {
|
|
19
19
|
listFiles
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-4qsce64w.js";
|
|
21
21
|
import {
|
|
22
22
|
loadConfig
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
} from "./index-zedjt25v.js";
|
|
24
|
+
import"./index-bzd2ef7t.js";
|
|
25
|
+
import {
|
|
26
|
+
buildManifestFile
|
|
27
|
+
} from "./index-fpghsgb4.js";
|
|
25
28
|
import {
|
|
26
29
|
bold,
|
|
27
30
|
cyan,
|
|
@@ -31,10 +34,11 @@ import"./index-ras0sdab.js";
|
|
|
31
34
|
import"./index-grta8ap3.js";
|
|
32
35
|
import"./index-kresp2n8.js";
|
|
33
36
|
import"./index-e3a6yx84.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
37
|
+
import"./index-x9c55pzy.js";
|
|
38
|
+
import"./index-d1jsmhhk.js";
|
|
36
39
|
import"./index-7wc9n8be.js";
|
|
37
40
|
import"./index-pym1cezq.js";
|
|
41
|
+
import"./index-jt8e1pje.js";
|
|
38
42
|
import"./index-zqpqyg8p.js";
|
|
39
43
|
import"./index-qjj6gddn.js";
|
|
40
44
|
import"./index-rt9qq1va.js";
|
|
@@ -77,7 +81,7 @@ async function analyzeProject(root, options = {}) {
|
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
async function analyzeRouteBundles(outPath, publicPath, files, routeFilter) {
|
|
80
|
-
const manifestPath =
|
|
84
|
+
const manifestPath = buildManifestFile(outPath);
|
|
81
85
|
if (!existsSync(manifestPath))
|
|
82
86
|
return [];
|
|
83
87
|
const manifest = JSON.parse(await readFile(manifestPath, "utf8"));
|
|
@@ -280,7 +284,7 @@ function prerenderedPathname(route) {
|
|
|
280
284
|
});
|
|
281
285
|
}
|
|
282
286
|
function analyzeTarget(outPath) {
|
|
283
|
-
const publicPath = path.join(outPath, "
|
|
287
|
+
const publicPath = path.join(outPath, "static");
|
|
284
288
|
return existsSync(publicPath) ? { root: publicPath } : null;
|
|
285
289
|
}
|
|
286
290
|
function compressedSize(bytes, compression) {
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
registerCompatBootExtensions
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xs3411qh.js";
|
|
5
5
|
import"./index-2wfv4kvx.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
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";
|
|
11
11
|
import"./index-6q7zvrap.js";
|
|
12
12
|
import"./index-z88qv16t.js";
|
|
13
13
|
import"./index-2vz0wzdn.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-m63czgq5.js";
|
|
15
15
|
import"./index-cjgqs13g.js";
|
|
16
16
|
import"./index-jks0x0a1.js";
|
|
17
17
|
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-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-4qsce64w.js";
|
|
22
|
+
import"./index-zedjt25v.js";
|
|
23
|
+
import"./index-bzd2ef7t.js";
|
|
23
24
|
import"./index-jcsjq3d1.js";
|
|
24
|
-
import"./index-
|
|
25
|
+
import"./index-fpghsgb4.js";
|
|
25
26
|
import"./index-grta8ap3.js";
|
|
26
27
|
import"./index-kresp2n8.js";
|
|
27
28
|
import"./index-e3a6yx84.js";
|
|
28
|
-
import"./index-
|
|
29
|
+
import"./index-d1jsmhhk.js";
|
|
29
30
|
import"./index-7wc9n8be.js";
|
|
30
31
|
import"./index-pym1cezq.js";
|
|
32
|
+
import"./index-jt8e1pje.js";
|
|
31
33
|
import"./index-zqpqyg8p.js";
|
|
32
34
|
import"./index-qjj6gddn.js";
|
|
33
35
|
import"./index-rt9qq1va.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
stopCssWorker,
|
|
20
20
|
warmCssPipeline,
|
|
21
21
|
warmCssWorker
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-1y0cesgn.js";
|
|
23
23
|
import"./index-73z4esab.js";
|
|
24
24
|
import {
|
|
25
25
|
assetHref,
|
|
@@ -35,16 +35,18 @@ import {
|
|
|
35
35
|
routeCssAssetNames,
|
|
36
36
|
routeCssHref,
|
|
37
37
|
withAssetPrefix
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-xrsg0041.js";
|
|
39
39
|
import"./index-web361b8.js";
|
|
40
40
|
import"./index-fp8r0sqs.js";
|
|
41
41
|
import"./index-cjgqs13g.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
42
|
+
import"./index-4qsce64w.js";
|
|
43
|
+
import"./index-bzd2ef7t.js";
|
|
44
|
+
import"./index-fpghsgb4.js";
|
|
44
45
|
import"./index-6kp9r0d9.js";
|
|
45
|
-
import"./index-
|
|
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";
|
|
@@ -14,37 +14,37 @@ import {
|
|
|
14
14
|
treeSegmentFile,
|
|
15
15
|
validateBuild,
|
|
16
16
|
warnNextMetadataBuildIssues
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-qjrh7w2g.js";
|
|
18
18
|
import {
|
|
19
19
|
writeTsconfigDefaults
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-0wm2p3ks.js";
|
|
21
21
|
import {
|
|
22
22
|
generateTypedRoutes
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-6tb725m8.js";
|
|
24
24
|
import {
|
|
25
25
|
scanRootParamTypes
|
|
26
26
|
} from "./index-v1ags1na.js";
|
|
27
27
|
import {
|
|
28
28
|
discoverStaticMetadataFiles
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-yghskk8w.js";
|
|
30
30
|
import {
|
|
31
31
|
deploymentId,
|
|
32
32
|
turbopackLoaderRules
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
} from "./index-wm36rj4v.js";
|
|
34
|
+
import"./index-aarf1brn.js";
|
|
35
35
|
import {
|
|
36
36
|
nextCompatEnabled,
|
|
37
37
|
reactCompatEnabled,
|
|
38
38
|
reactCompilerOptions
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-0qt2vapb.js";
|
|
40
40
|
import {
|
|
41
41
|
findProxyFile,
|
|
42
42
|
proxyExternalLoadTarget
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-vqs3rebe.js";
|
|
44
44
|
import {
|
|
45
45
|
devServerModuleHref
|
|
46
|
-
} from "./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
} from "./index-912z4mfx.js";
|
|
47
|
+
import"./index-xrsg0041.js";
|
|
48
48
|
import"./index-web361b8.js";
|
|
49
49
|
import {
|
|
50
50
|
preferredRegionForRoute
|
|
@@ -52,16 +52,16 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
fontLinkHeaderValue,
|
|
54
54
|
takeFontHeaderPreloads
|
|
55
|
-
} from "./index-
|
|
56
|
-
import"./index-
|
|
55
|
+
} from "./index-26gwrm07.js";
|
|
56
|
+
import"./index-s61bx2aj.js";
|
|
57
57
|
import"./index-knp0s912.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-md5jchzy.js";
|
|
59
59
|
import"./index-fn1chkkd.js";
|
|
60
60
|
import"./index-ye9hmsvf.js";
|
|
61
61
|
import"./index-6q7zvrap.js";
|
|
62
62
|
import {
|
|
63
63
|
takeResourceHintHeader
|
|
64
|
-
} from "./index-
|
|
64
|
+
} from "./index-tf4j19ge.js";
|
|
65
65
|
import"./index-stbk3jhn.js";
|
|
66
66
|
import {
|
|
67
67
|
aliasGenerateStaticParams,
|
|
@@ -74,14 +74,14 @@ import {
|
|
|
74
74
|
prerenderFailureFooter,
|
|
75
75
|
takeCacheLifeStash,
|
|
76
76
|
writeBuildFlags
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-j0m1jxqa.js";
|
|
78
78
|
import"./index-z88qv16t.js";
|
|
79
79
|
import"./index-fp8r0sqs.js";
|
|
80
|
-
import"./index-
|
|
80
|
+
import"./index-akkrvjn6.js";
|
|
81
81
|
import"./index-bcws5eh2.js";
|
|
82
82
|
import {
|
|
83
83
|
getNextConfig
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-m63czgq5.js";
|
|
85
85
|
import"./index-cjgqs13g.js";
|
|
86
86
|
import"./index-jks0x0a1.js";
|
|
87
87
|
import"./index-6b009mt0.js";
|
|
@@ -92,18 +92,19 @@ import {
|
|
|
92
92
|
emitCustomServerShim
|
|
93
93
|
} from "./index-8kcxdfya.js";
|
|
94
94
|
import"./index-yhxkxghe.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
95
|
+
import"./index-jjppzw0s.js";
|
|
96
|
+
import"./index-veycp46e.js";
|
|
97
97
|
import {
|
|
98
98
|
listFiles,
|
|
99
99
|
toPosixPath
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-4qsce64w.js";
|
|
101
101
|
import"./index-vz0km5qk.js";
|
|
102
102
|
import {
|
|
103
103
|
pathToFileHref
|
|
104
|
-
} from "./index-
|
|
104
|
+
} from "./index-zedjt25v.js";
|
|
105
|
+
import"./index-bzd2ef7t.js";
|
|
105
106
|
import"./index-jcsjq3d1.js";
|
|
106
|
-
import"./index-
|
|
107
|
+
import"./index-fpghsgb4.js";
|
|
107
108
|
import"./index-ras0sdab.js";
|
|
108
109
|
import {
|
|
109
110
|
legacyRequestAPIs
|
|
@@ -112,6 +113,7 @@ import"./index-kresp2n8.js";
|
|
|
112
113
|
import"./index-e3a6yx84.js";
|
|
113
114
|
import"./index-7wc9n8be.js";
|
|
114
115
|
import"./index-pym1cezq.js";
|
|
116
|
+
import"./index-jt8e1pje.js";
|
|
115
117
|
import {
|
|
116
118
|
onExtensionHostReset,
|
|
117
119
|
registerBuildCompleteHooks,
|
|
@@ -187,7 +189,7 @@ function collectOutputs(config, manifest) {
|
|
|
187
189
|
};
|
|
188
190
|
const prerenderedRoutes = new Set;
|
|
189
191
|
for (const [relative, metadata] of Object.entries(manifest.staticFiles ?? {})) {
|
|
190
|
-
const filePath = path.join(config.outPath, "
|
|
192
|
+
const filePath = path.join(config.outPath, "static", relative);
|
|
191
193
|
if (!existsSync(filePath))
|
|
192
194
|
continue;
|
|
193
195
|
if (metadata.routeId)
|
|
@@ -413,6 +415,7 @@ async function validateTypesOffThread(config) {
|
|
|
413
415
|
const input = {
|
|
414
416
|
root: config.root,
|
|
415
417
|
outPath: config.outPath,
|
|
418
|
+
outRootPath: config.outRootPath,
|
|
416
419
|
compat: config.compat,
|
|
417
420
|
nextConfig: cloneable({
|
|
418
421
|
typescript: next.typescript,
|
|
@@ -527,12 +530,12 @@ function appDiagnostic(file, config) {
|
|
|
527
530
|
return false;
|
|
528
531
|
if (resolved.includes(`${path3.sep}node_modules${path3.sep}`))
|
|
529
532
|
return false;
|
|
530
|
-
if (resolved.startsWith(path3.resolve(config.
|
|
533
|
+
if (resolved.startsWith(path3.resolve(config.outRootPath) + path3.sep))
|
|
531
534
|
return false;
|
|
532
535
|
return true;
|
|
533
536
|
}
|
|
534
537
|
function generatedProjectPath(config) {
|
|
535
|
-
return path3.resolve(config.
|
|
538
|
+
return path3.resolve(config.outRootPath, "typecheck", "tsconfig.json");
|
|
536
539
|
}
|
|
537
540
|
function reactTypePaths(root, basePaths, compatPreact) {
|
|
538
541
|
const react = resolveTypesDir("react", root);
|
|
@@ -580,7 +583,7 @@ function resolvePackageDir(name, root) {
|
|
|
580
583
|
return;
|
|
581
584
|
}
|
|
582
585
|
async function writeTypecheckProject(config, native) {
|
|
583
|
-
const dir = path3.join(config.
|
|
586
|
+
const dir = path3.join(config.outRootPath, "typecheck");
|
|
584
587
|
await mkdir3(dir, { recursive: true });
|
|
585
588
|
const reactTypes = resolveTypesDir("react", config.root);
|
|
586
589
|
const hasReactTypes = reactTypes !== undefined;
|
|
@@ -644,7 +647,7 @@ async function writeTypecheckProject(config, native) {
|
|
|
644
647
|
return project;
|
|
645
648
|
}
|
|
646
649
|
function preactTypeShimPath(config) {
|
|
647
|
-
return path3.join(config.
|
|
650
|
+
return path3.join(config.outRootPath, "typecheck", "preact-compat.d.ts");
|
|
648
651
|
}
|
|
649
652
|
function preactTypeShim(preact, react) {
|
|
650
653
|
const preactTypes = JSON.stringify(path3.join(preact, "src", "index.d.ts"));
|
|
@@ -2003,7 +2006,7 @@ function toRouteMeta(metadata) {
|
|
|
2003
2006
|
async function writeStaticMetadataArtifacts(outPath, root, relative, metadata) {
|
|
2004
2007
|
if (!metadata)
|
|
2005
2008
|
return;
|
|
2006
|
-
const source = path5.join(outPath, "
|
|
2009
|
+
const source = path5.join(outPath, "static", relative);
|
|
2007
2010
|
const outputBase = path5.join(root, "server", "app", toPosixPath(relative));
|
|
2008
2011
|
await mkdir5(path5.dirname(outputBase), { recursive: true });
|
|
2009
2012
|
const routeMeta = JSON.stringify(toRouteMeta(metadata));
|
|
@@ -2128,12 +2131,12 @@ async function findFiles(root, targetName) {
|
|
|
2128
2131
|
}
|
|
2129
2132
|
|
|
2130
2133
|
// src/compat/export/emit.ts
|
|
2131
|
-
import { copyFile, mkdir as mkdir7, readFile as readFile3, rm
|
|
2134
|
+
import { copyFile, mkdir as mkdir7, readFile as readFile3, rm, writeFile as writeFile7 } from "fs/promises";
|
|
2132
2135
|
import path7 from "path";
|
|
2133
2136
|
|
|
2134
2137
|
// src/compat/export/standalone.ts
|
|
2135
2138
|
import { existsSync as existsSync3, readFileSync } from "fs";
|
|
2136
|
-
import { mkdir as mkdir6,
|
|
2139
|
+
import { mkdir as mkdir6, writeFile as writeFile6 } from "fs/promises";
|
|
2137
2140
|
import path6 from "path";
|
|
2138
2141
|
var ENTRY_FILE = /(?:^|[\\/])(page|route)\.(?:js|jsx|ts|tsx|mjs|cjs)$/;
|
|
2139
2142
|
async function emitStandalone({
|
|
@@ -2144,50 +2147,31 @@ async function emitStandalone({
|
|
|
2144
2147
|
await log.step("standalone output", () => writeStandalone(config, manifest));
|
|
2145
2148
|
}
|
|
2146
2149
|
async function writeStandalone(config, manifest) {
|
|
2147
|
-
const standaloneDir =
|
|
2148
|
-
await
|
|
2149
|
-
await mkdir6(standaloneDir, { recursive: true });
|
|
2150
|
-
await writeServerEntry(config, standaloneDir);
|
|
2150
|
+
const standaloneDir = config.outPath;
|
|
2151
|
+
await writeFile6(path6.join(standaloneDir, "server.js"), standaloneServerSource());
|
|
2151
2152
|
await writeTraceFiles(config, standaloneDir);
|
|
2152
2153
|
await writeMiddlewareManifest(manifest, standaloneDir);
|
|
2153
2154
|
}
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
await writeFile6(path6.join(standaloneDir, "server.js"), standaloneServerSource(config));
|
|
2158
|
-
}
|
|
2159
|
-
function standaloneServerSource(config) {
|
|
2160
|
-
const cliPath = path6.resolve(__PNEXT_PACKAGE_ROOT__ + "/src/compat/export", "..", "..", "cli", "index.ts");
|
|
2161
|
-
return `'use strict';
|
|
2162
|
-
// pnext standalone launcher. Generated by pnext build; see
|
|
2163
|
-
// src/compat/export/standalone.ts. Spawned as \`node server.js\` from the moved
|
|
2164
|
-
// standalone directory; re-execs the real pnext server under Bun.
|
|
2165
|
-
const { spawn } = require('node:child_process');
|
|
2166
|
-
|
|
2167
|
-
const PNEXT_CLI = ${JSON.stringify(cliPath)};
|
|
2168
|
-
const PNEXT_ROOT = ${JSON.stringify(config.root)};
|
|
2169
|
-
const port = String(process.env.PORT || '3000');
|
|
2170
|
-
const hostname = process.env.HOSTNAME || '0.0.0.0';
|
|
2155
|
+
function standaloneServerSource() {
|
|
2156
|
+
return `// pnext standalone launcher, generated by pnext build (src/compat/export/standalone.ts).
|
|
2157
|
+
import { spawn } from 'node:child_process';
|
|
2171
2158
|
|
|
2172
|
-
const
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
stdio: ['ignore', 'inherit', 'inherit'],
|
|
2189
|
-
}
|
|
2190
|
-
);
|
|
2159
|
+
const port = Number(process.env.PORT || '3000');
|
|
2160
|
+
const hostname = process.env.HOSTNAME || '0.0.0.0';
|
|
2161
|
+
const entry = new URL('./server/entry.js', import.meta.url).href;
|
|
2162
|
+
const boot = \`const { start } = await import(\${JSON.stringify(entry)}); await start(\${JSON.stringify({ port, hostname })});\`;
|
|
2163
|
+
|
|
2164
|
+
const child = spawn('bun', ['--conditions=react-server', '-e', boot], {
|
|
2165
|
+
env: {
|
|
2166
|
+
...process.env,
|
|
2167
|
+
// Suppresses \`pnext start\`'s "output: standalone" warning (Next gates the
|
|
2168
|
+
// same warning on this private env being set by its standalone server).
|
|
2169
|
+
__NEXT_PRIVATE_STANDALONE_CONFIG: '1',
|
|
2170
|
+
BROWSER: 'none',
|
|
2171
|
+
NODE_ENV: 'production',
|
|
2172
|
+
},
|
|
2173
|
+
stdio: ['ignore', 'inherit', 'inherit'],
|
|
2174
|
+
});
|
|
2191
2175
|
|
|
2192
2176
|
child.on('error', (error) => {
|
|
2193
2177
|
console.error('pnext standalone: failed to start the pnext server:', error);
|
|
@@ -2279,7 +2263,7 @@ var COMMON_SEGMENTS = ["_full", "_head", "_index", "_tree"];
|
|
|
2279
2263
|
var RUNTIME_ASSET_DIR = "_next/static/chunks";
|
|
2280
2264
|
var EXPORT_MODE_SCRIPT = "<script>window.__PNEXT_OUTPUT_EXPORT__=true;</script>";
|
|
2281
2265
|
async function emitStaticExport({ config, manifest, log }) {
|
|
2282
|
-
await log.step("build manifest", () => writeBuildManifests(path7.join(config.outPath, "
|
|
2266
|
+
await log.step("build manifest", () => writeBuildManifests(path7.join(config.outPath, "static")));
|
|
2283
2267
|
const output = getNextConfig().output;
|
|
2284
2268
|
if (output === "standalone") {
|
|
2285
2269
|
await emitStandalone({ config, manifest, log });
|
|
@@ -2291,7 +2275,7 @@ async function emitStaticExport({ config, manifest, log }) {
|
|
|
2291
2275
|
}
|
|
2292
2276
|
async function writeExportTree(config, manifest) {
|
|
2293
2277
|
const outDir = exportOutDir(config);
|
|
2294
|
-
await
|
|
2278
|
+
await rm(outDir, { recursive: true, force: true });
|
|
2295
2279
|
await mkdir7(outDir, { recursive: true });
|
|
2296
2280
|
const assets = await copyRuntimeAssets(config, outDir);
|
|
2297
2281
|
await copyPublicTree(config, outDir, assets);
|
|
@@ -2302,7 +2286,7 @@ async function writeExportTree(config, manifest) {
|
|
|
2302
2286
|
await writeNotFoundArtifacts(config, outDir);
|
|
2303
2287
|
}
|
|
2304
2288
|
async function copyRuntimeAssets(config, outDir) {
|
|
2305
|
-
const assetsDir = path7.join(config.outPath, "
|
|
2289
|
+
const assetsDir = path7.join(config.outPath, "static", "assets");
|
|
2306
2290
|
const assets = new Set;
|
|
2307
2291
|
for (const file of await listFiles(assetsDir)) {
|
|
2308
2292
|
const relative = toPosixPath(path7.relative(assetsDir, file));
|
|
@@ -2314,7 +2298,7 @@ async function copyRuntimeAssets(config, outDir) {
|
|
|
2314
2298
|
return assets;
|
|
2315
2299
|
}
|
|
2316
2300
|
async function copyPublicTree(config, outDir, assets) {
|
|
2317
|
-
const publicDir = path7.join(config.outPath, "
|
|
2301
|
+
const publicDir = path7.join(config.outPath, "static");
|
|
2318
2302
|
for (const file of await listFiles(publicDir)) {
|
|
2319
2303
|
const relative = toPosixPath(path7.relative(publicDir, file));
|
|
2320
2304
|
if (relative.startsWith("assets/"))
|
|
@@ -2359,7 +2343,7 @@ function exportPages(config, manifest) {
|
|
|
2359
2343
|
const route = metadata.routeId ? routeById.get(metadata.routeId) : undefined;
|
|
2360
2344
|
if (route?.kind !== "page")
|
|
2361
2345
|
continue;
|
|
2362
|
-
const htmlFile = path7.join(config.outPath, "
|
|
2346
|
+
const htmlFile = path7.join(config.outPath, "static", ...relative.split("/"));
|
|
2363
2347
|
pages.push({
|
|
2364
2348
|
route,
|
|
2365
2349
|
htmlFile,
|