@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.
- package/dist/server/_chunks/{aliases-j47a10ce.js → aliases-pycbtjt1.js} +7 -5
- package/dist/server/_chunks/{analyze-arswqe6s.js → analyze-4d9e00g9.js} +17 -13
- package/dist/server/_chunks/{boot-af0mv3dy.js → boot-bhemypxz.js} +13 -11
- package/dist/server/_chunks/{build-spy3dxp4.js → build-c991dv65.js} +7 -5
- package/dist/server/_chunks/{build-t9h0hec3.js → build-kh5e3x48.js} +977 -1186
- package/dist/server/_chunks/{build-tier-m7yvqz61.js → build-tier-0a96kmx3.js} +59 -75
- package/dist/server/_chunks/{compile-53j02j27.js → compile-040r79gj.js} +2 -2
- package/dist/server/_chunks/{config-n2z7yxps.js → config-0tvz03a6.js} +6 -4
- package/dist/server/_chunks/{config-1yzwexq6.js → config-27rj7830.js} +12 -3
- package/dist/server/_chunks/{create-meec9hs6.js → create-9rvwshsp.js} +4 -3
- package/dist/server/_chunks/{dev-fjmqg6en.js → dev-ex9exynt.js} +2 -2
- package/dist/server/_chunks/{generate-n9sh6hzt.js → generate-myw9hef7.js} +5 -4
- package/dist/server/_chunks/{index-91x12ykq.js → index-0r5eqfc7.js} +6 -1
- package/dist/server/_chunks/{index-3xbr4eyv.js → index-0yjv5v47.js} +3 -3
- package/dist/server/_chunks/{index-ncnes8c6.js → index-11xpbfej.js} +2 -2
- package/dist/server/_chunks/{index-357na4a8.js → index-141vcwk6.js} +1 -1
- package/dist/server/_chunks/{index-nyrba2kr.js → index-1pzm1hdy.js} +11 -11
- package/dist/server/_chunks/{index-fkp000p1.js → index-29pq0kax.js} +2 -2
- package/dist/server/_chunks/{index-wpfhfbs4.js → index-38xpdxwd.js} +4 -4
- package/dist/server/_chunks/{index-tvqkq6e6.js → index-3e075kny.js} +1 -1
- package/dist/server/_chunks/{index-kq8kpzye.js → index-3ycf5ckv.js} +3 -3
- package/dist/server/_chunks/{index-20ppawv7.js → index-4da76t62.js} +3 -3
- package/dist/server/_chunks/{index-cf4rvxv6.js → index-52k54ykj.js} +1 -1
- package/dist/server/_chunks/{index-x93hv0sc.js → index-71885zaq.js} +23 -10
- package/dist/server/_chunks/{index-jepjvcrf.js → index-8ct7rqy3.js} +1 -1
- package/dist/server/_chunks/{index-sjpckxqn.js → index-9f49w76j.js} +1 -1
- package/dist/server/_chunks/{index-4hgjrqh7.js → index-9hz3s0m8.js} +2 -2
- package/dist/server/_chunks/{index-9n2914ww.js → index-akkrvjn6.js} +1 -1
- package/dist/server/_chunks/{index-9ych9ma8.js → index-b7j671dj.js} +2 -2
- package/dist/server/_chunks/index-bzd2ef7t.js +10 -0
- package/dist/server/_chunks/{index-p77b4kcx.js → index-cn86z041.js} +1 -1
- package/dist/server/_chunks/{index-hkdfj58q.js → index-cvr4z22m.js} +1 -1
- package/dist/server/_chunks/{index-y2jr2n72.js → index-d158y67j.js} +4 -4
- package/dist/server/_chunks/{index-yz54pxrh.js → index-d1jsmhhk.js} +4 -9
- package/dist/server/_chunks/{index-ggk2j965.js → index-dgr390q7.js} +56 -50
- package/dist/server/_chunks/{index-sctcgyvv.js → index-drwv61cc.js} +2 -2
- package/dist/server/_chunks/{index-9hx2641q.js → index-entm8bmz.js} +1 -1
- package/dist/server/_chunks/{index-jx7bqvw1.js → index-evhd413j.js} +1 -1
- package/dist/server/_chunks/{index-1011cscr.js → index-fjv96re1.js} +61 -29
- package/dist/server/_chunks/{index-c0g2wf3z.js → index-gcmj16xy.js} +1 -1
- package/dist/server/_chunks/{index-ytjvpbm2.js → index-gkndxkxf.js} +3 -3
- package/dist/server/_chunks/index-hdbwtdv2.js +352 -0
- package/dist/server/_chunks/{index-z84ab1w0.js → index-he6n2bvp.js} +3 -3
- package/dist/server/_chunks/{index-eajaspjk.js → index-j0m1jxqa.js} +1 -1
- package/dist/server/_chunks/{index-4q2gbfwk.js → index-j681c48a.js} +2 -2
- package/dist/server/_chunks/index-jbj7ehef.js +50 -0
- package/dist/server/_chunks/{index-8k7pfejn.js → index-jn9rbhrx.js} +7 -7
- package/dist/server/_chunks/index-jt8e1pje.js +12 -0
- package/dist/server/_chunks/{index-eeaanp2e.js → index-kdhxpwyq.js} +3 -3
- package/dist/server/_chunks/{index-6e4fqv30.js → index-m63czgq5.js} +2 -0
- package/dist/server/_chunks/{index-2dv4y4wd.js → index-n629dy38.js} +16 -10
- package/dist/server/_chunks/{index-sv8m6789.js → index-nf3df4jy.js} +5 -5
- package/dist/server/_chunks/{index-06nyqntx.js → index-q3r9z8mq.js} +1 -1
- package/dist/server/_chunks/{index-3b3at80h.js → index-qcrvt6er.js} +6 -3
- package/dist/server/_chunks/{index-egykcqg3.js → index-rgj5mx84.js} +1 -1
- package/dist/server/_chunks/{index-vvmmknm1.js → index-rjegyfx4.js} +19 -15
- package/dist/server/_chunks/{index-ym67zqxp.js → index-tf4j19ge.js} +1 -1
- package/dist/server/_chunks/{index-5gyr4emz.js → index-tq3b39a5.js} +4 -4
- package/dist/server/_chunks/{index-qn4z5s3c.js → index-typcbcsv.js} +3 -3
- package/dist/server/_chunks/{index-11sfk4hb.js → index-vmr35jjw.js} +1 -1
- package/dist/server/_chunks/{index-danncfhy.js → index-wm36rj4v.js} +1 -1
- package/dist/server/_chunks/{index-3tf1xjsp.js → index-x2m17v9c.js} +11 -11
- package/dist/server/_chunks/{index-z4z9zv3b.js → index-x9c55pzy.js} +141 -3
- package/dist/server/_chunks/{index-k1g3epw0.js → index-xh1nbk46.js} +10 -10
- package/dist/server/_chunks/{index-0374j2b9.js → index-y4d02znn.js} +1 -1
- package/dist/server/_chunks/{index-qm6kmhqs.js → index-y7mzvq2q.js} +1 -1
- package/dist/server/_chunks/{index-rn8dyr1f.js → index-yrjkqtfj.js} +8 -48
- package/dist/server/_chunks/{index-tq0pc7eg.js → index-zfrwq472.js} +3 -3
- package/dist/server/_chunks/{loader-7yw0j98z.js → loader-5en7wpt5.js} +12 -10
- package/dist/server/_chunks/{modules-jn8bmbn8.js → modules-t92favpj.js} +14 -12
- package/dist/server/_chunks/{pipeline-yy9jhydf.js → pipeline-4t9q43ht.js} +25 -21
- package/dist/server/_chunks/{production-jar9ztm3.js → production-385bw8df.js} +14 -3
- package/dist/server/_chunks/{proxy-config-j84dgksn.js → proxy-config-60gprphe.js} +7 -5
- package/dist/server/_chunks/{proxy-w1d0wmsn.js → proxy-gfhmktbk.js} +12 -10
- package/dist/server/_chunks/{router-k1reahfn.js → router-xnrva921.js} +10 -7
- package/dist/server/_chunks/{routes-2s277fc6.js → routes-ht868pdc.js} +12 -10
- package/dist/server/_chunks/{run-pvd8bs1t.js → run-d40d63ag.js} +5 -4
- package/dist/server/_chunks/{server-mt4a994c.js → server-2p8fgqq2.js} +38 -34
- package/dist/server/_chunks/{tsconfig-defaults-1nb3308g.js → tsconfig-defaults-bcn34eqb.js} +5 -4
- package/dist/server/_chunks/{typegen-0qr0459b.js → typegen-dvtcjtaw.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 +95 -1262
- 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 +703 -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
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
latestPnextVersionRange
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-evhd413j.js";
|
|
5
5
|
import {
|
|
6
6
|
pnextOptionalDependencyRange
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-4da76t62.js";
|
|
8
|
+
import"./index-hdbwtdv2.js";
|
|
9
9
|
import {
|
|
10
10
|
bold,
|
|
11
11
|
cyan,
|
|
12
12
|
dim,
|
|
13
13
|
green
|
|
14
14
|
} from "./index-6kp9r0d9.js";
|
|
15
|
+
import"./index-jt8e1pje.js";
|
|
15
16
|
import {
|
|
16
17
|
__require
|
|
17
18
|
} from "./index-rt9qq1va.js";
|
|
@@ -265,7 +266,7 @@ var SEGMENT_HEADS = /export\s+default\s+(?:async\s+)?function\s*[\w$]*\s*\(|expo
|
|
|
265
266
|
var ROUTE_HANDLER_HEADS = /export\s+(?:async\s+)?function\s+(?:GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS)\s*\(|export\s+const\s+(?:GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS)\s*(?::[^=]*)?=\s*(?:async\s*)?\(/g;
|
|
266
267
|
var SYNC_PROPS = ["params", "searchParams"];
|
|
267
268
|
async function scanSources(root, result) {
|
|
268
|
-
const { SHIMMED_NEXT_DIST_PATHS } = await import("./aliases-
|
|
269
|
+
const { SHIMMED_NEXT_DIST_PATHS } = await import("./aliases-pycbtjt1.js");
|
|
269
270
|
const shimmed = new Set(SHIMMED_NEXT_DIST_PATHS);
|
|
270
271
|
const deepImports = [];
|
|
271
272
|
const streaming = [];
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
deferredDynamicRefById,
|
|
14
14
|
prebuiltRuntimeDir,
|
|
15
15
|
registerDeferredDynamicRef
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-1pzm1hdy.js";
|
|
17
17
|
import {
|
|
18
18
|
writeTypegen
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-38xpdxwd.js";
|
|
20
20
|
import {
|
|
21
21
|
handleRouteModule
|
|
22
22
|
} from "./index-qpwsgt3a.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
routeFactsVersion,
|
|
28
28
|
scanRoutes,
|
|
29
29
|
setRouteFactsStore
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-jn9rbhrx.js";
|
|
31
31
|
import {
|
|
32
32
|
clearDevRouteBundleKeys,
|
|
33
33
|
devClientModuleHref,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
drainPreplanBuilds,
|
|
40
40
|
importDevModule,
|
|
41
41
|
warmDevModulePipeline
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-fjv96re1.js";
|
|
43
43
|
import {
|
|
44
44
|
getClientActionBundler
|
|
45
45
|
} from "./index-n4hxpng2.js";
|
|
@@ -50,8 +50,8 @@ import {
|
|
|
50
50
|
installServerRuntimePlugins,
|
|
51
51
|
registerServerRuntime,
|
|
52
52
|
setDevWatcherFreshness
|
|
53
|
-
} from "./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
} from "./index-rjegyfx4.js";
|
|
54
|
+
import"./index-0r5eqfc7.js";
|
|
55
55
|
import {
|
|
56
56
|
clearMetadataFileCaches,
|
|
57
57
|
clientEntryName,
|
|
@@ -66,22 +66,23 @@ import {
|
|
|
66
66
|
renderPageResponse,
|
|
67
67
|
staticMetadataCacheControl,
|
|
68
68
|
withDevReloadScript
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-x2m17v9c.js";
|
|
70
70
|
import {
|
|
71
71
|
findLayouts,
|
|
72
72
|
matchRoute,
|
|
73
73
|
parseNavState,
|
|
74
74
|
selectRouteForRequest
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-8ct7rqy3.js";
|
|
76
76
|
import {
|
|
77
77
|
applyProxyResponse,
|
|
78
78
|
createProxyRunner,
|
|
79
79
|
validateProxyFiles
|
|
80
|
-
} from "./index-
|
|
80
|
+
} from "./index-3ycf5ckv.js";
|
|
81
81
|
import {
|
|
82
82
|
serverBundleTargetForRuntime
|
|
83
|
-
} from "./index-
|
|
84
|
-
import"./index-
|
|
83
|
+
} from "./index-0yjv5v47.js";
|
|
84
|
+
import"./index-yrjkqtfj.js";
|
|
85
|
+
import"./index-jbj7ehef.js";
|
|
85
86
|
import {
|
|
86
87
|
buildClientReferenceCss,
|
|
87
88
|
buildGlobalCss,
|
|
@@ -90,11 +91,11 @@ import {
|
|
|
90
91
|
isCssFile,
|
|
91
92
|
setGlobalCssSourceStore,
|
|
92
93
|
warmCssPipeline
|
|
93
|
-
} from "./index-
|
|
94
|
+
} from "./index-n629dy38.js";
|
|
94
95
|
import {
|
|
95
96
|
formatDuration
|
|
96
97
|
} from "./index-73z4esab.js";
|
|
97
|
-
import"./index-
|
|
98
|
+
import"./index-d158y67j.js";
|
|
98
99
|
import {
|
|
99
100
|
getFontExtensions,
|
|
100
101
|
nextCompatEnabled
|
|
@@ -104,7 +105,7 @@ import {
|
|
|
104
105
|
} from "./index-knp0s912.js";
|
|
105
106
|
import {
|
|
106
107
|
frameworkFingerprint
|
|
107
|
-
} from "./index-
|
|
108
|
+
} from "./index-gcmj16xy.js";
|
|
108
109
|
import {
|
|
109
110
|
escapeHtml
|
|
110
111
|
} from "./index-ye9hmsvf.js";
|
|
@@ -114,8 +115,8 @@ import {
|
|
|
114
115
|
import"./index-fp8r0sqs.js";
|
|
115
116
|
import"./index-cjgqs13g.js";
|
|
116
117
|
import"./index-yhxkxghe.js";
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
118
|
+
import"./index-29pq0kax.js";
|
|
119
|
+
import"./index-cn86z041.js";
|
|
119
120
|
import {
|
|
120
121
|
ensureDir,
|
|
121
122
|
exactNameIndex,
|
|
@@ -123,7 +124,7 @@ import {
|
|
|
123
124
|
listFiles,
|
|
124
125
|
writeFileAtomic,
|
|
125
126
|
writeText
|
|
126
|
-
} from "./index-
|
|
127
|
+
} from "./index-4da76t62.js";
|
|
127
128
|
import {
|
|
128
129
|
markBoot
|
|
129
130
|
} from "./index-tq1f96v7.js";
|
|
@@ -134,13 +135,15 @@ import {
|
|
|
134
135
|
abortUpstreamFetchOnDisconnect,
|
|
135
136
|
bootstrapCompat,
|
|
136
137
|
bootstrapCompatBoot
|
|
137
|
-
} from "./index-
|
|
138
|
-
import"./index-
|
|
139
|
-
import
|
|
138
|
+
} from "./index-tq3b39a5.js";
|
|
139
|
+
import"./index-71885zaq.js";
|
|
140
|
+
import {
|
|
141
|
+
outCachePath
|
|
142
|
+
} from "./index-bzd2ef7t.js";
|
|
140
143
|
import {
|
|
141
144
|
markErrorLogged
|
|
142
145
|
} from "./index-jcsjq3d1.js";
|
|
143
|
-
import"./index-
|
|
146
|
+
import"./index-hdbwtdv2.js";
|
|
144
147
|
import"./index-6kp9r0d9.js";
|
|
145
148
|
import {
|
|
146
149
|
ssrClientReference
|
|
@@ -155,14 +158,15 @@ import {
|
|
|
155
158
|
} from "./index-grta8ap3.js";
|
|
156
159
|
import"./index-kresp2n8.js";
|
|
157
160
|
import"./index-e3a6yx84.js";
|
|
158
|
-
import"./index-
|
|
161
|
+
import"./index-x9c55pzy.js";
|
|
159
162
|
import {
|
|
160
163
|
clearAppTreeResolutions,
|
|
161
164
|
clearResolverFsCache,
|
|
162
165
|
workspacePackageRoots
|
|
163
|
-
} from "./index-
|
|
166
|
+
} from "./index-d1jsmhhk.js";
|
|
164
167
|
import"./index-7wc9n8be.js";
|
|
165
168
|
import"./index-pym1cezq.js";
|
|
169
|
+
import"./index-jt8e1pje.js";
|
|
166
170
|
import {
|
|
167
171
|
finalizeResponse,
|
|
168
172
|
getAssetExtensions,
|
|
@@ -190,7 +194,7 @@ import path from "path";
|
|
|
190
194
|
var INDEX_VERSION = 1;
|
|
191
195
|
var caches = new Map;
|
|
192
196
|
function keyCache(config) {
|
|
193
|
-
const file = path.join(config.outPath, "
|
|
197
|
+
const file = path.join(outCachePath(config.outPath), "client", "keys.json");
|
|
194
198
|
const existing = caches.get(file);
|
|
195
199
|
if (existing)
|
|
196
200
|
return existing;
|
|
@@ -305,7 +309,7 @@ import { createHash } from "crypto";
|
|
|
305
309
|
import { link, mkdir as mkdir2, readFile as readFile2, readdir, rm, stat as stat2, unlink } from "fs/promises";
|
|
306
310
|
import path2 from "path";
|
|
307
311
|
function clientChunkStoreDir(outPath) {
|
|
308
|
-
return path2.join(outPath, "
|
|
312
|
+
return path2.join(outCachePath(outPath), "client-store");
|
|
309
313
|
}
|
|
310
314
|
function contentHash(data) {
|
|
311
315
|
return createHash("sha1").update(data).digest("hex");
|
|
@@ -439,7 +443,7 @@ function installRouteFactsCache(config) {
|
|
|
439
443
|
if (process.env.PNEXT_DEV_FACTS_CACHE === "0")
|
|
440
444
|
return;
|
|
441
445
|
const cache = {
|
|
442
|
-
dir: path3.join(config.outPath, "
|
|
446
|
+
dir: path3.join(outCachePath(config.outPath), "route-facts"),
|
|
443
447
|
key: lazyRecordCacheKey(config, RECORD_VERSION),
|
|
444
448
|
written: new Set
|
|
445
449
|
};
|
|
@@ -529,7 +533,7 @@ function installGlobalCssCache(config) {
|
|
|
529
533
|
return;
|
|
530
534
|
if (process.env.PNEXT_DEV_GLOBAL_CSS_CACHE === "0")
|
|
531
535
|
return;
|
|
532
|
-
const dir = path4.join(config.outPath, "
|
|
536
|
+
const dir = path4.join(outCachePath(config.outPath), "global-css");
|
|
533
537
|
setGlobalCssSourceStore(createStore2(dir, lazyRecordCacheKey(config, RECORD_VERSION2)));
|
|
534
538
|
}
|
|
535
539
|
function createStore2(dir, cacheKey) {
|
|
@@ -652,7 +656,7 @@ async function evictStaleClientCaches(outPath) {
|
|
|
652
656
|
const keep = Number(process.env.PNEXT_DEV_CLIENT_CACHE_KEEP || 32);
|
|
653
657
|
if (!Number.isFinite(keep) || keep <= 0)
|
|
654
658
|
return;
|
|
655
|
-
const clientRoot = path5.join(outPath, "
|
|
659
|
+
const clientRoot = path5.join(outCachePath(outPath), "client");
|
|
656
660
|
try {
|
|
657
661
|
const entries = await readdir2(clientRoot);
|
|
658
662
|
if (entries.length <= keep)
|
|
@@ -879,7 +883,7 @@ async function startDevServer(options) {
|
|
|
879
883
|
return finish(applyProxyResponse(staticResponse, proxyResponse));
|
|
880
884
|
}
|
|
881
885
|
if (getAssetExtensions().staticAssetPublicPrefixes().some((prefix) => url.pathname.startsWith(prefix))) {
|
|
882
|
-
const emitted = await maybeStaticFile(path5.join(config.outPath, "
|
|
886
|
+
const emitted = await maybeStaticFile(path5.join(config.outPath, "static"), url.pathname, exactNames);
|
|
883
887
|
if (emitted) {
|
|
884
888
|
setWorkUnitRoute("static-asset", "static");
|
|
885
889
|
return finish(applyProxyResponse(emitted, proxyResponse));
|
|
@@ -887,7 +891,7 @@ async function startDevServer(options) {
|
|
|
887
891
|
}
|
|
888
892
|
const staticAssetPathname = getNextStaticAssetPathname(url.pathname, config.basePath, config.assetPrefix);
|
|
889
893
|
if (staticAssetPathname) {
|
|
890
|
-
const outPublicStatic = await maybeStaticFile(path5.join(config.outPath, "
|
|
894
|
+
const outPublicStatic = await maybeStaticFile(path5.join(config.outPath, "static"), staticAssetPathname, exactNames);
|
|
891
895
|
if (outPublicStatic) {
|
|
892
896
|
setWorkUnitRoute("static-asset", "static");
|
|
893
897
|
return finish(applyProxyResponse(outPublicStatic, proxyResponse));
|
|
@@ -1277,7 +1281,7 @@ async function buildDevClient(config, route) {
|
|
|
1277
1281
|
const cacheKeys = await Promise.all(batchRoutes.map((entry) => routeClientCacheKey(config, entry)));
|
|
1278
1282
|
const cacheKey = batchRoutes.length === 1 ? cacheKeys[0] : `batch-${clientSourceHash([...cacheKeys].sort().join(`
|
|
1279
1283
|
`))}`;
|
|
1280
|
-
const outDir = path5.join(config.outPath, "
|
|
1284
|
+
const outDir = path5.join(outCachePath(config.outPath), "client", cacheKey);
|
|
1281
1285
|
const outFile = path5.join(outDir, `${clientEntryName(route)}.js`);
|
|
1282
1286
|
const existing = clientBuilds.get(outDir);
|
|
1283
1287
|
if (existing)
|
|
@@ -1341,7 +1345,7 @@ async function resolveDevClientChunk(config, name) {
|
|
|
1341
1345
|
const settled = clientChunks.get(name);
|
|
1342
1346
|
if (settled && existsSync2(settled))
|
|
1343
1347
|
return settled;
|
|
1344
|
-
const clientRoot = path5.join(config.outPath, "
|
|
1348
|
+
const clientRoot = path5.join(outCachePath(config.outPath), "client");
|
|
1345
1349
|
for (const generation of await readdir2(clientRoot).catch(() => [])) {
|
|
1346
1350
|
const chunksDir = path5.join(clientRoot, generation, "chunks");
|
|
1347
1351
|
const file = path5.join(chunksDir, name);
|
|
@@ -1448,8 +1452,8 @@ async function maybeBuiltAsset(config, routes, requestPathname) {
|
|
|
1448
1452
|
}
|
|
1449
1453
|
}
|
|
1450
1454
|
const outPath = config.outPath;
|
|
1451
|
-
const filePath = path5.join(outPath,
|
|
1452
|
-
if (!isInside(path5.join(outPath
|
|
1455
|
+
const filePath = path5.join(outCachePath(outPath), pathname.replace(/^\/+/, ""));
|
|
1456
|
+
if (!isInside(path5.join(outCachePath(outPath)), filePath) || !existsSync2(filePath))
|
|
1453
1457
|
return null;
|
|
1454
1458
|
const fileStat = await stat3(filePath);
|
|
1455
1459
|
if (!fileStat.isFile())
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
writeTsconfigDefaults
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-b7j671dj.js";
|
|
5
|
+
import"./index-m63czgq5.js";
|
|
6
6
|
import"./index-cjgqs13g.js";
|
|
7
7
|
import"./index-jks0x0a1.js";
|
|
8
8
|
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-
|
|
13
|
-
import"./index-
|
|
12
|
+
import"./index-4da76t62.js";
|
|
13
|
+
import"./index-hdbwtdv2.js";
|
|
14
14
|
import"./index-kresp2n8.js";
|
|
15
15
|
import"./index-e3a6yx84.js";
|
|
16
16
|
import"./index-7wc9n8be.js";
|
|
17
|
+
import"./index-jt8e1pje.js";
|
|
17
18
|
import"./index-rt9qq1va.js";
|
|
18
19
|
export {
|
|
19
20
|
writeTsconfigDefaults
|
|
@@ -2,30 +2,32 @@
|
|
|
2
2
|
import {
|
|
3
3
|
typegenProject,
|
|
4
4
|
writeTypegen
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
5
|
+
} from "./index-38xpdxwd.js";
|
|
6
|
+
import"./index-jn9rbhrx.js";
|
|
7
|
+
import"./index-0r5eqfc7.js";
|
|
8
|
+
import"./index-8ct7rqy3.js";
|
|
9
|
+
import"./index-n629dy38.js";
|
|
10
10
|
import"./index-73z4esab.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-d158y67j.js";
|
|
12
12
|
import"./index-web361b8.js";
|
|
13
13
|
import"./index-fp8r0sqs.js";
|
|
14
14
|
import"./index-cjgqs13g.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
15
|
+
import"./index-cn86z041.js";
|
|
16
|
+
import"./index-4da76t62.js";
|
|
17
|
+
import"./index-tq3b39a5.js";
|
|
18
|
+
import"./index-71885zaq.js";
|
|
19
|
+
import"./index-bzd2ef7t.js";
|
|
20
|
+
import"./index-hdbwtdv2.js";
|
|
20
21
|
import"./index-6kp9r0d9.js";
|
|
21
22
|
import"./index-ras0sdab.js";
|
|
22
23
|
import"./index-grta8ap3.js";
|
|
23
24
|
import"./index-kresp2n8.js";
|
|
24
25
|
import"./index-e3a6yx84.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-x9c55pzy.js";
|
|
27
|
+
import"./index-d1jsmhhk.js";
|
|
27
28
|
import"./index-7wc9n8be.js";
|
|
28
29
|
import"./index-pym1cezq.js";
|
|
30
|
+
import"./index-jt8e1pje.js";
|
|
29
31
|
import"./index-zqpqyg8p.js";
|
|
30
32
|
import"./index-qjj6gddn.js";
|
|
31
33
|
import"./index-rt9qq1va.js";
|
package/dist/server/cli/index.js
CHANGED
|
@@ -63,7 +63,7 @@ try {
|
|
|
63
63
|
printCommandHelp(command);
|
|
64
64
|
} else if (command === "dev") {
|
|
65
65
|
warnUnknownFlags(command, args);
|
|
66
|
-
const { dev } = await import("../_chunks/dev-
|
|
66
|
+
const { dev } = await import("../_chunks/dev-ex9exynt.js");
|
|
67
67
|
await dev({
|
|
68
68
|
root: positionalRoot(args),
|
|
69
69
|
port: optionNumber(args, "--port"),
|
|
@@ -71,7 +71,7 @@ try {
|
|
|
71
71
|
});
|
|
72
72
|
} else if (command === "build") {
|
|
73
73
|
warnUnknownFlags(command, args);
|
|
74
|
-
const { buildProject } = await import("../_chunks/build-
|
|
74
|
+
const { buildProject } = await import("../_chunks/build-kh5e3x48.js");
|
|
75
75
|
await buildProject(positionalRoot(args), {
|
|
76
76
|
adapter: adapterOption(args),
|
|
77
77
|
verbose: args.includes("--verbose"),
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
buildMode: buildModeOption(args),
|
|
80
80
|
debugPrerender: args.includes("--debug-prerender")
|
|
81
81
|
});
|
|
82
|
-
await (await import("../_chunks/build-
|
|
82
|
+
await (await import("../_chunks/build-c991dv65.js")).stopCssWorker();
|
|
83
83
|
process.exit(0);
|
|
84
84
|
} else if (command === "start") {
|
|
85
85
|
warnUnknownFlags(command, args);
|
|
@@ -92,7 +92,7 @@ try {
|
|
|
92
92
|
});
|
|
93
93
|
} else if (command === "analyze") {
|
|
94
94
|
warnUnknownFlags(command, args);
|
|
95
|
-
const { analyzeProject } = await import("../_chunks/analyze-
|
|
95
|
+
const { analyzeProject } = await import("../_chunks/analyze-4d9e00g9.js");
|
|
96
96
|
const { route, root } = analyzePositionals(args);
|
|
97
97
|
const result = await analyzeProject(root, {
|
|
98
98
|
compression: analyzeCompression(args),
|
|
@@ -101,23 +101,23 @@ try {
|
|
|
101
101
|
if (args.includes("--json")) {
|
|
102
102
|
console.log(JSON.stringify(result, null, 2));
|
|
103
103
|
} else {
|
|
104
|
-
const { printAnalyzeResult } = await import("../_chunks/analyze-
|
|
104
|
+
const { printAnalyzeResult } = await import("../_chunks/analyze-4d9e00g9.js");
|
|
105
105
|
printAnalyzeResult(result, { route, files: args.includes("--files") });
|
|
106
106
|
}
|
|
107
107
|
} else if (command === "typegen") {
|
|
108
108
|
warnUnknownFlags(command, args);
|
|
109
|
-
const { typegenProject } = await import("../_chunks/typegen-
|
|
109
|
+
const { typegenProject } = await import("../_chunks/typegen-dvtcjtaw.js");
|
|
110
110
|
const result = await typegenProject(positionalRoot(args));
|
|
111
111
|
console.log(`Generated ${result.routes} route types, ${result.aliases} aliases, and ${result.checks} checks at ${result.file}`);
|
|
112
112
|
process.exit(0);
|
|
113
113
|
} else if (command === "create") {
|
|
114
114
|
warnUnknownFlags(command, args);
|
|
115
|
-
const { createApp } = await import("../_chunks/create-
|
|
115
|
+
const { createApp } = await import("../_chunks/create-9rvwshsp.js");
|
|
116
116
|
await createApp(positionals(args)[0], { install: !args.includes("--no-install") });
|
|
117
117
|
process.exit(0);
|
|
118
118
|
} else if (command === "migrate") {
|
|
119
119
|
warnUnknownFlags(command, args);
|
|
120
|
-
const { migrateApp } = await import("../_chunks/run-
|
|
120
|
+
const { migrateApp } = await import("../_chunks/run-d40d63ag.js");
|
|
121
121
|
const code = await migrateApp(positionalRoot(args), { dryRun: args.includes("--dry-run") });
|
|
122
122
|
process.exit(code);
|
|
123
123
|
} else if (command === "info") {
|
|
@@ -150,14 +150,11 @@ pnext client import trace for route `);
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function prebundleServes(root = process.cwd()) {
|
|
153
|
-
if (typeof { version: "0.1.
|
|
153
|
+
if (typeof { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] } !== "object")
|
|
154
154
|
return true;
|
|
155
|
-
const [{ DEFAULT_OUT_DIR }, {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
]);
|
|
159
|
-
const outPath = locateRelease(path.resolve(root), DEFAULT_OUT_DIR);
|
|
160
|
-
return !outPath || readBuildIndex(outPath).framework === { version: "0.1.7", fingerprint: "3e1b3462bd8a29ed", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.fingerprint && VERSION === { version: "0.1.7", fingerprint: "3e1b3462bd8a29ed", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.version;
|
|
155
|
+
const [{ DEFAULT_OUT_DIR, standaloneOutSegment }, { buildIndexFile, readBuildIndex }] = await Promise.all([import("../_chunks/config-27rj7830.js"), import("../_chunks/production-385bw8df.js")]);
|
|
156
|
+
const outPath = path.resolve(root, DEFAULT_OUT_DIR, standaloneOutSegment);
|
|
157
|
+
return !existsSync(buildIndexFile(outPath)) || readBuildIndex(outPath).framework === { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.fingerprint && VERSION === { version: "0.1.8", fingerprint: "64aaa993cbaa58df", entries: ["cli/index", "cli/start", "client/reference", "api/client-cache", "compat/next/canonical-url", "compat/next/link-transform", "compat/next/client-navigation", "compat/next/og", "compat/next/link", "compat/next/usage", "compat/next/client-script", "compat/next/headers", "compat/next/custom-server", "compat/next/legacy-image", "compat/next/router", "compat/next/navigation", "compat/next/dist/server/web/spec-extension/unstable-no-store", "compat/next/dist/server/web/spec-extension/unstable-cache", "compat/next/dist/server/web/spec-extension/revalidate", "compat/next/dist/client/components/app-router-headers", "compat/next/web-vitals", "compat/next/root-params", "compat/next/route-state", "compat/next/server-only", "compat/next/client-server", "compat/next/legacy-request-apis", "compat/next/redirects", "compat/next/resource-hints", "compat/next/svgr", "compat/next/client-only", "compat/next/image/props", "compat/next/image/optimizer", "compat/next/image/validate", "compat/next/image/shared", "compat/next/image/patterns", "compat/next/image/config", "compat/next/image/client", "compat/next/image/static-metadata", "compat/next/user-agent", "compat/next/client-cache", "compat/next/head", "compat/next/dynamic", "compat/next/telemetry", "compat/next/offline", "compat/next/cache", "compat/next/constants", "compat/next/error", "compat/next/script", "compat/next/index", "compat/next/font/shared", "compat/next/font/runtime", "compat/next/font/google", "compat/next/font/cache", "compat/next/font/runtime-client", "compat/next/font/local", "compat/next/font/index", "compat/next/config-loader", "compat/next/config", "compat/next/image", "compat/next/server", "compat/next/rewrites", "compat/next/preferred-region", "compat/next/config-headers", "compat/next/form", "compat/react/dom", "compat/react/hooks-extra", "compat/react/react-server", "compat/react/dom-client", "compat/react/style-values", "compat/react/compiler-runtime", "compat/react/router-shim", "compat/react/dom-server", "compat/react/dom-react-server", "compat/react/server-component-use", "compat/react/action-state", "compat/react/client", "compat/react/client-lite", "compat/react/server-inserted-html", "compat/react/parity", "compat/react/preact", "compat/react/use", "compat/react/view-transition", "compat/react/internals", "compat/react/server"] }.version;
|
|
161
158
|
}
|
|
162
159
|
function positionalRoot(args2) {
|
|
163
160
|
return positionals(args2)[0];
|
package/dist/server/cli/start.js
CHANGED
|
@@ -7,17 +7,20 @@ import {
|
|
|
7
7
|
} from "../_chunks/index-q738kkhj.js";
|
|
8
8
|
import {
|
|
9
9
|
bootstrapCompat
|
|
10
|
-
} from "../_chunks/index-
|
|
11
|
-
import {
|
|
12
|
-
registerPrebundleResolve
|
|
13
|
-
} from "../_chunks/index-y36a0ybw.js";
|
|
10
|
+
} from "../_chunks/index-tq3b39a5.js";
|
|
14
11
|
import {
|
|
15
12
|
loadConfig
|
|
16
|
-
} from "../_chunks/index-
|
|
13
|
+
} from "../_chunks/index-71885zaq.js";
|
|
14
|
+
import"../_chunks/index-bzd2ef7t.js";
|
|
17
15
|
import {
|
|
18
16
|
markErrorLogged
|
|
19
17
|
} from "../_chunks/index-jcsjq3d1.js";
|
|
20
|
-
import
|
|
18
|
+
import {
|
|
19
|
+
buildIndexFile,
|
|
20
|
+
buildManifestFile,
|
|
21
|
+
linkStandaloneOrigins,
|
|
22
|
+
registerPrebundleResolve
|
|
23
|
+
} from "../_chunks/index-hdbwtdv2.js";
|
|
21
24
|
import"../_chunks/index-6kp9r0d9.js";
|
|
22
25
|
import {
|
|
23
26
|
drainWorkUnits
|
|
@@ -27,6 +30,7 @@ import {
|
|
|
27
30
|
isPostpone
|
|
28
31
|
} from "../_chunks/index-e3a6yx84.js";
|
|
29
32
|
import"../_chunks/index-pym1cezq.js";
|
|
33
|
+
import"../_chunks/index-jt8e1pje.js";
|
|
30
34
|
import {
|
|
31
35
|
getBuildExtensions
|
|
32
36
|
} from "../_chunks/index-zqpqyg8p.js";
|
|
@@ -36,22 +40,41 @@ import {
|
|
|
36
40
|
} from "../_chunks/index-rt9qq1va.js";
|
|
37
41
|
|
|
38
42
|
// src/cli/start.ts
|
|
43
|
+
import { existsSync } from "fs";
|
|
39
44
|
import { readFile } from "fs/promises";
|
|
40
45
|
import path from "path";
|
|
46
|
+
import { pathToFileURL } from "url";
|
|
41
47
|
async function createRequestHandler(options = {}) {
|
|
42
48
|
registerPrebundleResolve();
|
|
43
|
-
const
|
|
44
|
-
|
|
49
|
+
const config = options.config ?? await loadConfig(options.root, { serve: true });
|
|
50
|
+
if (shipsElsewhere(config)) {
|
|
51
|
+
const shipped = await shippedStart(config);
|
|
52
|
+
return shipped.createRequestHandler({ root: options.root, manifest: options.manifest });
|
|
53
|
+
}
|
|
54
|
+
const { createRequestHandler: create } = await import("../_chunks/pipeline-4t9q43ht.js");
|
|
55
|
+
return create({ ...options, config });
|
|
56
|
+
}
|
|
57
|
+
function shipsElsewhere(config) {
|
|
58
|
+
return existsSync(buildIndexFile(config.outPath)) && !linkStandaloneOrigins(config.outPath);
|
|
59
|
+
}
|
|
60
|
+
function shippedStart(config) {
|
|
61
|
+
const entry = pathToFileURL(path.join(config.outPath, "server", "entry.js")).href;
|
|
62
|
+
return import(entry);
|
|
45
63
|
}
|
|
46
64
|
async function maybeBuiltFile(...args) {
|
|
47
|
-
const { maybeBuiltFile: impl } = await import("../_chunks/pipeline-
|
|
65
|
+
const { maybeBuiltFile: impl } = await import("../_chunks/pipeline-4t9q43ht.js");
|
|
48
66
|
return impl(...args);
|
|
49
67
|
}
|
|
50
68
|
async function start(options = {}) {
|
|
51
69
|
const startedAt = Date.now();
|
|
52
70
|
const port = options.port ?? 3000;
|
|
53
71
|
const hostname = options.hostname ?? "0.0.0.0";
|
|
54
|
-
const config = await
|
|
72
|
+
const config = await loadConfig(options.root, { serve: true });
|
|
73
|
+
if (shipsElsewhere(config)) {
|
|
74
|
+
await (await shippedStart(config)).start(options);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
await guardUnservableOutputMode(config);
|
|
55
78
|
const manifest = await readProductionManifest(config);
|
|
56
79
|
await ensurePortFree(port, hostname);
|
|
57
80
|
let handler;
|
|
@@ -95,7 +118,7 @@ function installProcessErrorHandlers() {
|
|
|
95
118
|
}
|
|
96
119
|
async function readProductionManifest(config) {
|
|
97
120
|
try {
|
|
98
|
-
return JSON.parse(await readFile(
|
|
121
|
+
return JSON.parse(await readFile(buildManifestFile(config.outPath), "utf8"));
|
|
99
122
|
} catch (error) {
|
|
100
123
|
if (error.code === "ENOENT") {
|
|
101
124
|
throw new Error("No production build found. Run 'pnext build' first.");
|
|
@@ -103,8 +126,7 @@ async function readProductionManifest(config) {
|
|
|
103
126
|
throw error;
|
|
104
127
|
}
|
|
105
128
|
}
|
|
106
|
-
async function guardUnservableOutputMode(
|
|
107
|
-
const config = await loadConfig(root, { serve: true });
|
|
129
|
+
async function guardUnservableOutputMode(config) {
|
|
108
130
|
await bootstrapCompat(config);
|
|
109
131
|
const mode = getBuildExtensions().compat.nextOutputMode();
|
|
110
132
|
if (mode === "export") {
|
|
@@ -114,7 +136,6 @@ async function guardUnservableOutputMode(root) {
|
|
|
114
136
|
if (mode === "standalone" && !process.env.__NEXT_PRIVATE_STANDALONE_CONFIG) {
|
|
115
137
|
console.warn('"next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.');
|
|
116
138
|
}
|
|
117
|
-
return config;
|
|
118
139
|
}
|
|
119
140
|
function installShutdownHandlers(server) {
|
|
120
141
|
let shuttingDown = false;
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
unstable_noStore,
|
|
16
16
|
unstable_refresh,
|
|
17
17
|
updateTag
|
|
18
|
-
} from "../../_chunks/index-
|
|
18
|
+
} from "../../_chunks/index-zfrwq472.js";
|
|
19
19
|
import {
|
|
20
20
|
io
|
|
21
|
-
} from "../../_chunks/index-
|
|
22
|
-
import"../../_chunks/index-
|
|
23
|
-
import"../../_chunks/index-
|
|
21
|
+
} from "../../_chunks/index-entm8bmz.js";
|
|
22
|
+
import"../../_chunks/index-j0m1jxqa.js";
|
|
23
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
24
24
|
import"../../_chunks/index-bcws5eh2.js";
|
|
25
|
-
import"../../_chunks/index-
|
|
25
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
26
26
|
import"../../_chunks/index-cjgqs13g.js";
|
|
27
27
|
import"../../_chunks/index-jks0x0a1.js";
|
|
28
28
|
import"../../_chunks/index-6b009mt0.js";
|
|
@@ -3,26 +3,28 @@ import {
|
|
|
3
3
|
appPathname,
|
|
4
4
|
loadCompatHeaders,
|
|
5
5
|
resolveCompatHeaders
|
|
6
|
-
} from "../../_chunks/index-
|
|
7
|
-
import"../../_chunks/index-
|
|
6
|
+
} from "../../_chunks/index-rgj5mx84.js";
|
|
7
|
+
import"../../_chunks/index-he6n2bvp.js";
|
|
8
8
|
import"../../_chunks/index-6q7zvrap.js";
|
|
9
9
|
import"../../_chunks/index-79ngvam8.js";
|
|
10
|
-
import"../../_chunks/index-
|
|
10
|
+
import"../../_chunks/index-akkrvjn6.js";
|
|
11
11
|
import"../../_chunks/index-bcws5eh2.js";
|
|
12
|
-
import"../../_chunks/index-
|
|
12
|
+
import"../../_chunks/index-m63czgq5.js";
|
|
13
13
|
import"../../_chunks/index-cjgqs13g.js";
|
|
14
14
|
import"../../_chunks/index-jks0x0a1.js";
|
|
15
15
|
import"../../_chunks/index-6b009mt0.js";
|
|
16
16
|
import"../../_chunks/index-4zzebszd.js";
|
|
17
17
|
import"../../_chunks/index-sq3kvz3g.js";
|
|
18
18
|
import"../../_chunks/index-ckkdpht5.js";
|
|
19
|
-
import"../../_chunks/index-
|
|
20
|
-
import"../../_chunks/index-
|
|
19
|
+
import"../../_chunks/index-71885zaq.js";
|
|
20
|
+
import"../../_chunks/index-bzd2ef7t.js";
|
|
21
|
+
import"../../_chunks/index-hdbwtdv2.js";
|
|
21
22
|
import"../../_chunks/index-grta8ap3.js";
|
|
22
23
|
import"../../_chunks/index-kresp2n8.js";
|
|
23
24
|
import"../../_chunks/index-e3a6yx84.js";
|
|
24
25
|
import"../../_chunks/index-7wc9n8be.js";
|
|
25
26
|
import"../../_chunks/index-pym1cezq.js";
|
|
27
|
+
import"../../_chunks/index-jt8e1pje.js";
|
|
26
28
|
import"../../_chunks/index-qjj6gddn.js";
|
|
27
29
|
import"../../_chunks/index-rt9qq1va.js";
|
|
28
30
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadNextConfig,
|
|
6
6
|
nextConfigReleased,
|
|
7
7
|
setNextConfig
|
|
8
|
-
} from "../../_chunks/index-
|
|
8
|
+
} from "../../_chunks/index-m63czgq5.js";
|
|
9
9
|
import"../../_chunks/index-cjgqs13g.js";
|
|
10
10
|
import"../../_chunks/index-jks0x0a1.js";
|
|
11
11
|
import"../../_chunks/index-6b009mt0.js";
|