@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
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./index-2wfv4kvx.js";
|
|
6
6
|
import {
|
|
7
7
|
transpilePackages
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-wm36rj4v.js";
|
|
9
9
|
import {
|
|
10
10
|
selectRouteForRequest
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-8ct7rqy3.js";
|
|
12
12
|
import {
|
|
13
13
|
compatAliases,
|
|
14
14
|
missingCompatImportError,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
reactCompatEnabled,
|
|
18
18
|
reactCompilerOptions,
|
|
19
19
|
reactServerLayerAliases
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-kdhxpwyq.js";
|
|
21
21
|
import {
|
|
22
22
|
findProxyFiles
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-3ycf5ckv.js";
|
|
24
24
|
import {
|
|
25
25
|
getRequestRuntime
|
|
26
26
|
} from "./index-z88qv16t.js";
|
|
@@ -29,19 +29,19 @@ import {
|
|
|
29
29
|
} from "./index-2vz0wzdn.js";
|
|
30
30
|
import {
|
|
31
31
|
getNextConfig
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-m63czgq5.js";
|
|
33
33
|
import {
|
|
34
34
|
build
|
|
35
35
|
} from "./index-cjgqs13g.js";
|
|
36
36
|
import {
|
|
37
37
|
cssModuleScopePath
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-4da76t62.js";
|
|
39
39
|
import {
|
|
40
40
|
markErrorLogged
|
|
41
41
|
} from "./index-jcsjq3d1.js";
|
|
42
42
|
import {
|
|
43
43
|
productionRelease
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-hdbwtdv2.js";
|
|
45
45
|
import {
|
|
46
46
|
getWorkUnit
|
|
47
47
|
} from "./index-grta8ap3.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
resolveImport,
|
|
55
55
|
resolvePackageSpecifier,
|
|
56
56
|
setModuleAliases
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-d1jsmhhk.js";
|
|
58
58
|
import {
|
|
59
59
|
loadNative
|
|
60
60
|
} from "./index-7wc9n8be.js";
|
|
@@ -170,7 +170,7 @@ function nextCssModuleChunkPlugin(config) {
|
|
|
170
170
|
setup(build2) {
|
|
171
171
|
build2.onLoad({ filter: /\.css$/ }, async ({ path: file }) => {
|
|
172
172
|
const source = nextCssSource(file, config.root);
|
|
173
|
-
const raw = (await (cssBuild ??= import("./build-
|
|
173
|
+
const raw = (await (cssBuild ??= import("./build-c991dv65.js"))).hoistCssImports(readFileSync(source, "utf8"));
|
|
174
174
|
const contents = file.endsWith(".module.css") ? transformCssModule(raw, source, config.root) : rewriteTransparentBodyChildren(raw);
|
|
175
175
|
return {
|
|
176
176
|
contents: maybeLightningcssTransform(contents, source, config.root),
|
|
@@ -1291,7 +1291,7 @@ function resolveTranspiledRouteDependency() {
|
|
|
1291
1291
|
async function validateProxyFiles(config) {
|
|
1292
1292
|
if (findProxyFiles(config, NEXT_PROXY_NAMES).length === 0)
|
|
1293
1293
|
return;
|
|
1294
|
-
const { registerProxyExtensions } = await import("./proxy-
|
|
1294
|
+
const { registerProxyExtensions } = await import("./proxy-gfhmktbk.js");
|
|
1295
1295
|
registerProxyExtensions(config);
|
|
1296
1296
|
await getProxyExtensions().validateFiles(config);
|
|
1297
1297
|
}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import { join as __pnextJoin } from "node:path";
|
|
3
3
|
const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
|
|
4
|
+
import {
|
|
5
|
+
hasModuleDirective
|
|
6
|
+
} from "./index-jbj7ehef.js";
|
|
4
7
|
import {
|
|
5
8
|
readText
|
|
6
|
-
} from "./index-
|
|
9
|
+
} from "./index-4da76t62.js";
|
|
7
10
|
import {
|
|
8
11
|
pathToFileHref
|
|
9
|
-
} from "./index-
|
|
12
|
+
} from "./index-71885zaq.js";
|
|
10
13
|
import {
|
|
11
14
|
clientReferenceId
|
|
12
15
|
} from "./index-ras0sdab.js";
|
|
13
16
|
import {
|
|
14
17
|
moduleExportNames,
|
|
15
18
|
moduleExportStars
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-x9c55pzy.js";
|
|
17
20
|
import {
|
|
18
21
|
resolveImport
|
|
19
|
-
} from "./index-
|
|
22
|
+
} from "./index-d1jsmhhk.js";
|
|
20
23
|
|
|
21
24
|
// src/client/reference-stub.ts
|
|
22
25
|
import path from "path";
|
|
@@ -73,50 +76,7 @@ async function clientReferenceExportNames(config, file, source, visited = new Se
|
|
|
73
76
|
return [...names];
|
|
74
77
|
}
|
|
75
78
|
function hasUseClientDirective(source) {
|
|
76
|
-
|
|
77
|
-
const code = source.charCodeAt(index);
|
|
78
|
-
return code === 32 || code >= 9 && code <= 13 || code > 127 && /\s/.test(source[index]);
|
|
79
|
-
};
|
|
80
|
-
let i = 0;
|
|
81
|
-
for (;; ) {
|
|
82
|
-
while (i < source.length && isSpace(i))
|
|
83
|
-
i += 1;
|
|
84
|
-
if (source.startsWith("//", i)) {
|
|
85
|
-
const newline = source.indexOf(`
|
|
86
|
-
`, i);
|
|
87
|
-
if (newline === -1)
|
|
88
|
-
return false;
|
|
89
|
-
i = newline + 1;
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
if (source.startsWith("/*", i)) {
|
|
93
|
-
const end2 = source.indexOf("*/", i + 2);
|
|
94
|
-
if (end2 === -1)
|
|
95
|
-
return false;
|
|
96
|
-
i = end2 + 2;
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
const quote = source[i];
|
|
100
|
-
if (quote !== '"' && quote !== "'")
|
|
101
|
-
return false;
|
|
102
|
-
let end = i + 1;
|
|
103
|
-
while (end < source.length) {
|
|
104
|
-
const char = source[end];
|
|
105
|
-
if (char === quote || char === `
|
|
106
|
-
` || char === "\\")
|
|
107
|
-
break;
|
|
108
|
-
end += 1;
|
|
109
|
-
}
|
|
110
|
-
if (source[end] !== quote)
|
|
111
|
-
return false;
|
|
112
|
-
if (source.slice(i + 1, end) === "use client")
|
|
113
|
-
return true;
|
|
114
|
-
i = end + 1;
|
|
115
|
-
while (i < source.length && isSpace(i))
|
|
116
|
-
i += 1;
|
|
117
|
-
if (source[i] === ";")
|
|
118
|
-
i += 1;
|
|
119
|
-
}
|
|
79
|
+
return hasModuleDirective(source, "use client");
|
|
120
80
|
}
|
|
121
81
|
function isInside(root, file) {
|
|
122
82
|
const relative = path.relative(root, file);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
recordUseCacheLife,
|
|
4
4
|
recordUseCacheTags
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-j0m1jxqa.js";
|
|
6
6
|
import {
|
|
7
7
|
bumpRevalidationEvent,
|
|
8
8
|
cachedData,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
recordCacheNoStore,
|
|
16
16
|
recordCacheRevalidate,
|
|
17
17
|
recordCacheTags
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-akkrvjn6.js";
|
|
19
19
|
import {
|
|
20
20
|
getNextConfig
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-m63czgq5.js";
|
|
22
22
|
import {
|
|
23
23
|
currentRequest,
|
|
24
24
|
getWorkUnit
|
|
@@ -23,28 +23,30 @@ import {
|
|
|
23
23
|
statSignature,
|
|
24
24
|
transformCacheFile,
|
|
25
25
|
vendorLoadsNatively
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-rjegyfx4.js";
|
|
27
|
+
import"./index-0r5eqfc7.js";
|
|
28
28
|
import {
|
|
29
29
|
pagesApiBundleTargetForRuntime,
|
|
30
30
|
serverBundleTargetForRuntime,
|
|
31
31
|
setServerBundleConditions
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-0yjv5v47.js";
|
|
33
|
+
import"./index-jbj7ehef.js";
|
|
34
|
+
import"./index-gcmj16xy.js";
|
|
34
35
|
import"./index-cjgqs13g.js";
|
|
35
|
-
import"./index-
|
|
36
|
+
import"./index-4da76t62.js";
|
|
36
37
|
import"./index-vz0km5qk.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-71885zaq.js";
|
|
39
|
+
import"./index-bzd2ef7t.js";
|
|
40
|
+
import"./index-hdbwtdv2.js";
|
|
40
41
|
import"./index-ras0sdab.js";
|
|
41
42
|
import"./index-grta8ap3.js";
|
|
42
43
|
import"./index-kresp2n8.js";
|
|
43
44
|
import"./index-e3a6yx84.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-x9c55pzy.js";
|
|
46
|
+
import"./index-d1jsmhhk.js";
|
|
46
47
|
import"./index-7wc9n8be.js";
|
|
47
48
|
import"./index-pym1cezq.js";
|
|
49
|
+
import"./index-jt8e1pje.js";
|
|
48
50
|
import"./index-zqpqyg8p.js";
|
|
49
51
|
import"./index-qjj6gddn.js";
|
|
50
52
|
import"./index-rt9qq1va.js";
|
|
@@ -17,36 +17,38 @@ import {
|
|
|
17
17
|
setEmitCompiledSpecifiersManifest,
|
|
18
18
|
setReleaseCompile,
|
|
19
19
|
warmDevModulePipeline
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-fjv96re1.js";
|
|
21
21
|
import"./index-n4hxpng2.js";
|
|
22
22
|
import"./index-x3yn4ywm.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-rjegyfx4.js";
|
|
24
|
+
import"./index-0r5eqfc7.js";
|
|
25
25
|
import {
|
|
26
26
|
importModuleOnce,
|
|
27
27
|
isReleaseCompile,
|
|
28
28
|
throwIfModuleGraphFailed
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-0yjv5v47.js";
|
|
30
|
+
import"./index-yrjkqtfj.js";
|
|
31
|
+
import"./index-jbj7ehef.js";
|
|
31
32
|
import"./index-73z4esab.js";
|
|
32
33
|
import"./index-web361b8.js";
|
|
33
34
|
import"./index-knp0s912.js";
|
|
34
|
-
import"./index-
|
|
35
|
+
import"./index-gcmj16xy.js";
|
|
35
36
|
import"./index-cjgqs13g.js";
|
|
36
|
-
import"./index-
|
|
37
|
+
import"./index-4da76t62.js";
|
|
37
38
|
import"./index-vz0km5qk.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-71885zaq.js";
|
|
40
|
+
import"./index-bzd2ef7t.js";
|
|
41
|
+
import"./index-hdbwtdv2.js";
|
|
41
42
|
import"./index-6kp9r0d9.js";
|
|
42
43
|
import"./index-ras0sdab.js";
|
|
43
44
|
import"./index-grta8ap3.js";
|
|
44
45
|
import"./index-kresp2n8.js";
|
|
45
46
|
import"./index-e3a6yx84.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-x9c55pzy.js";
|
|
48
|
+
import"./index-d1jsmhhk.js";
|
|
48
49
|
import"./index-7wc9n8be.js";
|
|
49
50
|
import"./index-pym1cezq.js";
|
|
51
|
+
import"./index-jt8e1pje.js";
|
|
50
52
|
import"./index-zqpqyg8p.js";
|
|
51
53
|
import"./index-qjj6gddn.js";
|
|
52
54
|
import"./index-rt9qq1va.js";
|
|
@@ -17,24 +17,24 @@ import {
|
|
|
17
17
|
renderGlobalNotFoundResponse,
|
|
18
18
|
renderPageResponse,
|
|
19
19
|
renderPageWithStatus
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-x2m17v9c.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizePathname,
|
|
23
23
|
parseNavState,
|
|
24
24
|
selectRouteForRequest
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-8ct7rqy3.js";
|
|
26
26
|
import {
|
|
27
27
|
applyProxyResponse,
|
|
28
28
|
createProxyRunner
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-3ycf5ckv.js";
|
|
30
30
|
import {
|
|
31
31
|
importModuleOnce,
|
|
32
32
|
registerServerRuntime,
|
|
33
33
|
serverBundleTargetForRuntime
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-0yjv5v47.js";
|
|
35
35
|
import {
|
|
36
36
|
publishEmittedAssets
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-d158y67j.js";
|
|
38
38
|
import {
|
|
39
39
|
getRenderSpanExtensions
|
|
40
40
|
} from "./index-web361b8.js";
|
|
@@ -43,29 +43,32 @@ import {
|
|
|
43
43
|
setRequestRuntime
|
|
44
44
|
} from "./index-z88qv16t.js";
|
|
45
45
|
import"./index-yhxkxghe.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-29pq0kax.js";
|
|
47
|
+
import"./index-cn86z041.js";
|
|
48
48
|
import {
|
|
49
49
|
exactNameIndex,
|
|
50
50
|
hasExactName,
|
|
51
51
|
resolveManifest
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-4da76t62.js";
|
|
53
53
|
import"./index-vz0km5qk.js";
|
|
54
54
|
import {
|
|
55
55
|
abortUpstreamFetchOnDisconnect,
|
|
56
56
|
bootstrapCompat
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-tq3b39a5.js";
|
|
58
58
|
import {
|
|
59
59
|
loadConfig,
|
|
60
60
|
pathToFileHref
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-71885zaq.js";
|
|
62
|
+
import"./index-bzd2ef7t.js";
|
|
62
63
|
import {
|
|
63
64
|
markErrorLogged
|
|
64
65
|
} from "./index-jcsjq3d1.js";
|
|
65
66
|
import {
|
|
66
67
|
attachRelease,
|
|
68
|
+
buildManifestFile,
|
|
69
|
+
releaseFrameworkRoot,
|
|
67
70
|
releaseModuleHref
|
|
68
|
-
} from "./index-
|
|
71
|
+
} from "./index-hdbwtdv2.js";
|
|
69
72
|
import"./index-ras0sdab.js";
|
|
70
73
|
import {
|
|
71
74
|
flushWorkUnit,
|
|
@@ -79,6 +82,7 @@ import {
|
|
|
79
82
|
import"./index-kresp2n8.js";
|
|
80
83
|
import"./index-e3a6yx84.js";
|
|
81
84
|
import"./index-pym1cezq.js";
|
|
85
|
+
import"./index-jt8e1pje.js";
|
|
82
86
|
import {
|
|
83
87
|
finalizeResponse,
|
|
84
88
|
getProxyExtensions,
|
|
@@ -110,8 +114,8 @@ import { runWithCacheScope } from "../../../src/request/cache.ts";
|
|
|
110
114
|
async function createRequestHandler(options = {}) {
|
|
111
115
|
const config = options.config ?? await loadConfig(options.root, { serve: true });
|
|
112
116
|
await bootstrapCompat(config);
|
|
113
|
-
const manifestPath =
|
|
114
|
-
const manifest = resolveManifest(options.manifest ?? JSON.parse(await readFile(manifestPath, "utf8")), config.outPath, config.root);
|
|
117
|
+
const manifestPath = buildManifestFile(config.outPath);
|
|
118
|
+
const manifest = resolveManifest(options.manifest ?? JSON.parse(await readFile(manifestPath, "utf8")), config.outPath, config.root, releaseFrameworkRoot(config.outPath));
|
|
115
119
|
const release = attachRelease(config);
|
|
116
120
|
release.staticMetadataFiles = manifest.staticMetadataFiles;
|
|
117
121
|
const handlerHrefs = new Map(manifest.routes.filter((route) => route.kind === "handler").map((route) => [
|
|
@@ -403,7 +407,7 @@ async function createRequestHandler(options = {}) {
|
|
|
403
407
|
throw new Error("unsafe path");
|
|
404
408
|
await mkdir(path.dirname(file), { recursive: true });
|
|
405
409
|
await writeFile(file, new Uint8Array(await handlerResponse.clone().arrayBuffer()));
|
|
406
|
-
const relative = path.relative(path.join(config.outPath, "
|
|
410
|
+
const relative = path.relative(path.join(config.outPath, "static"), file).split(path.sep).join("/");
|
|
407
411
|
const routeRevalidate = matched.route.segmentConfig?.revalidate;
|
|
408
412
|
const revalidateSeconds = typeof routeRevalidate === "number" && routeRevalidate > 0 ? renderedHandler.revalidateSeconds === undefined ? routeRevalidate : Math.min(routeRevalidate, renderedHandler.revalidateSeconds) : renderedHandler.revalidateSeconds;
|
|
409
413
|
manifest.staticFiles ??= {};
|
|
@@ -481,7 +485,7 @@ async function createRequestHandler(options = {}) {
|
|
|
481
485
|
throw new Error("unsafe path");
|
|
482
486
|
await mkdir(path.dirname(file), { recursive: true });
|
|
483
487
|
await writeFile(file, await pageResponse.clone().text());
|
|
484
|
-
const relative = path.relative(path.join(config.outPath, "
|
|
488
|
+
const relative = path.relative(path.join(config.outPath, "static"), file).split(path.sep).join("/");
|
|
485
489
|
manifest.staticFiles ??= {};
|
|
486
490
|
manifest.staticFiles[relative] = {
|
|
487
491
|
status: 200,
|
|
@@ -611,16 +615,16 @@ function hasBuildCapturedCacheControl(metadata) {
|
|
|
611
615
|
return (metadata?.headers ?? []).some(([key]) => key.toLowerCase() === "cache-control");
|
|
612
616
|
}
|
|
613
617
|
async function builtFileInfo(outPath, pathname, staticFiles = {}, nextStaticFallback = false, exactNames) {
|
|
614
|
-
const file = await firstFile(path.join(outPath, "
|
|
618
|
+
const file = await firstFile(path.join(outPath, "static"), builtFileCandidates(outPath, pathname, nextStaticFallback), exactNames);
|
|
615
619
|
if (!file)
|
|
616
620
|
return null;
|
|
617
|
-
const publicPath = path.join(outPath, "
|
|
621
|
+
const publicPath = path.join(outPath, "static");
|
|
618
622
|
const fileStat = await stat(file);
|
|
619
623
|
const relative = path.relative(publicPath, file).split(path.sep).join("/");
|
|
620
624
|
return { file, relative, mtimeMs: fileStat.mtimeMs, metadata: staticFiles[relative] };
|
|
621
625
|
}
|
|
622
626
|
function builtFileCandidates(outPath, pathname, nextStaticFallback = false) {
|
|
623
|
-
const publicPath = path.join(outPath, "
|
|
627
|
+
const publicPath = path.join(outPath, "static");
|
|
624
628
|
const trimmed = pathname.replace(/^\/+/, "");
|
|
625
629
|
if (pathname === "/")
|
|
626
630
|
return [path.join(publicPath, "index.html")];
|
|
@@ -642,7 +646,7 @@ function builtFileCandidates(outPath, pathname, nextStaticFallback = false) {
|
|
|
642
646
|
return candidates;
|
|
643
647
|
}
|
|
644
648
|
function lazyStaticHtmlPath(outPath, pathname) {
|
|
645
|
-
const publicPath = path.join(outPath, "
|
|
649
|
+
const publicPath = path.join(outPath, "static");
|
|
646
650
|
const file = pathname === "/" ? path.join(publicPath, "index.html") : path.join(publicPath, pathname.replace(/^\/+|\/+$/g, ""), "index.html");
|
|
647
651
|
const relative = path.relative(publicPath, file);
|
|
648
652
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
@@ -652,7 +656,7 @@ function lazyStaticHtmlPath(outPath, pathname) {
|
|
|
652
656
|
function lazyStaticHandlerPath(outPath, pathname) {
|
|
653
657
|
if (pathname === "/")
|
|
654
658
|
return null;
|
|
655
|
-
const publicPath = path.join(outPath, "
|
|
659
|
+
const publicPath = path.join(outPath, "static");
|
|
656
660
|
const file = path.join(publicPath, pathname.replace(/^\/+|\/+$/g, ""));
|
|
657
661
|
const relative = path.relative(publicPath, file);
|
|
658
662
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
@@ -696,7 +700,7 @@ async function maybeBuiltFile(outPath, pathname, staticFiles = {}, method = "GET
|
|
|
696
700
|
const normalizedMethod = method.toUpperCase();
|
|
697
701
|
if (normalizedMethod !== "GET" && normalizedMethod !== "HEAD")
|
|
698
702
|
return null;
|
|
699
|
-
const publicPath = path.join(outPath, "
|
|
703
|
+
const publicPath = path.join(outPath, "static");
|
|
700
704
|
const file = await firstFile(publicPath, builtFileCandidates(outPath, pathname, nextStaticFallback), exactNames);
|
|
701
705
|
if (!file)
|
|
702
706
|
return null;
|
|
@@ -3,42 +3,53 @@ import {
|
|
|
3
3
|
BUILD_INDEX_VERSION,
|
|
4
4
|
attachRelease,
|
|
5
5
|
buildIndexFile,
|
|
6
|
+
buildManifestFile,
|
|
6
7
|
captureConventions,
|
|
7
8
|
conventionFileExists,
|
|
8
9
|
frozenDirListing,
|
|
9
|
-
|
|
10
|
+
linkStandaloneOrigins,
|
|
10
11
|
productionRelease,
|
|
11
12
|
readBuildIndex,
|
|
12
13
|
releaseConfig,
|
|
14
|
+
releaseFrameworkRoot,
|
|
13
15
|
releaseModuleHref,
|
|
14
16
|
releaseModuleKey,
|
|
15
17
|
releaseSourceFile,
|
|
16
18
|
releaseSourceKey,
|
|
19
|
+
releaseSourceRoot,
|
|
17
20
|
serializeReleaseConfig,
|
|
18
21
|
servedAppFiles,
|
|
19
22
|
servedConventions,
|
|
20
23
|
servedRelease,
|
|
24
|
+
servingReleaseDir,
|
|
25
|
+
standaloneOriginsFile,
|
|
21
26
|
writeBuildIndex
|
|
22
|
-
} from "./index-
|
|
27
|
+
} from "./index-hdbwtdv2.js";
|
|
28
|
+
import"./index-jt8e1pje.js";
|
|
23
29
|
import"./index-rt9qq1va.js";
|
|
24
30
|
export {
|
|
25
31
|
BUILD_INDEX_VERSION,
|
|
26
32
|
attachRelease,
|
|
27
33
|
buildIndexFile,
|
|
34
|
+
buildManifestFile,
|
|
28
35
|
captureConventions,
|
|
29
36
|
conventionFileExists,
|
|
30
37
|
frozenDirListing,
|
|
31
|
-
|
|
38
|
+
linkStandaloneOrigins,
|
|
32
39
|
productionRelease,
|
|
33
40
|
readBuildIndex,
|
|
34
41
|
releaseConfig,
|
|
42
|
+
releaseFrameworkRoot,
|
|
35
43
|
releaseModuleHref,
|
|
36
44
|
releaseModuleKey,
|
|
37
45
|
releaseSourceFile,
|
|
38
46
|
releaseSourceKey,
|
|
47
|
+
releaseSourceRoot,
|
|
39
48
|
serializeReleaseConfig,
|
|
40
49
|
servedAppFiles,
|
|
41
50
|
servedConventions,
|
|
42
51
|
servedRelease,
|
|
52
|
+
servingReleaseDir,
|
|
53
|
+
standaloneOriginsFile,
|
|
43
54
|
writeBuildIndex
|
|
44
55
|
};
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
releasedProxy,
|
|
4
4
|
staticProxyConfig
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
5
|
+
} from "./index-3e075kny.js";
|
|
6
|
+
import"./index-3ycf5ckv.js";
|
|
7
|
+
import"./index-0yjv5v47.js";
|
|
8
|
+
import"./index-71885zaq.js";
|
|
9
|
+
import"./index-bzd2ef7t.js";
|
|
10
|
+
import"./index-hdbwtdv2.js";
|
|
10
11
|
import"./index-grta8ap3.js";
|
|
11
12
|
import"./index-kresp2n8.js";
|
|
12
13
|
import"./index-e3a6yx84.js";
|
|
13
14
|
import"./index-7wc9n8be.js";
|
|
14
15
|
import"./index-pym1cezq.js";
|
|
16
|
+
import"./index-jt8e1pje.js";
|
|
15
17
|
import"./index-zqpqyg8p.js";
|
|
16
18
|
import"./index-qjj6gddn.js";
|
|
17
19
|
import"./index-rt9qq1va.js";
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
registerProxyExtensions
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nf3df4jy.js";
|
|
5
5
|
import"./index-2wfv4kvx.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
import"./index-kdhxpwyq.js";
|
|
7
|
+
import"./index-3ycf5ckv.js";
|
|
8
|
+
import"./index-0yjv5v47.js";
|
|
9
9
|
import"./index-6q7zvrap.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-m63czgq5.js";
|
|
11
11
|
import"./index-cjgqs13g.js";
|
|
12
12
|
import"./index-jks0x0a1.js";
|
|
13
13
|
import"./index-6b009mt0.js";
|
|
14
14
|
import"./index-4zzebszd.js";
|
|
15
15
|
import"./index-sq3kvz3g.js";
|
|
16
16
|
import"./index-ckkdpht5.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-4da76t62.js";
|
|
18
|
+
import"./index-71885zaq.js";
|
|
19
|
+
import"./index-bzd2ef7t.js";
|
|
20
|
+
import"./index-hdbwtdv2.js";
|
|
20
21
|
import"./index-en7n9f7m.js";
|
|
21
22
|
import"./index-grta8ap3.js";
|
|
22
23
|
import"./index-kresp2n8.js";
|
|
23
24
|
import"./index-e3a6yx84.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-x9c55pzy.js";
|
|
26
|
+
import"./index-d1jsmhhk.js";
|
|
26
27
|
import"./index-7wc9n8be.js";
|
|
27
28
|
import"./index-pym1cezq.js";
|
|
29
|
+
import"./index-jt8e1pje.js";
|
|
28
30
|
import"./index-zqpqyg8p.js";
|
|
29
31
|
import"./index-qjj6gddn.js";
|
|
30
32
|
import"./index-rt9qq1va.js";
|
|
@@ -3,10 +3,11 @@ import { join as __pnextJoin } from "node:path";
|
|
|
3
3
|
const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
|
|
4
4
|
import {
|
|
5
5
|
hasUseClientDirective
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-yrjkqtfj.js";
|
|
7
|
+
import"./index-jbj7ehef.js";
|
|
7
8
|
import {
|
|
8
9
|
getNextConfig
|
|
9
|
-
} from "./index-
|
|
10
|
+
} from "./index-m63czgq5.js";
|
|
10
11
|
import"./index-cjgqs13g.js";
|
|
11
12
|
import"./index-jks0x0a1.js";
|
|
12
13
|
import"./index-6b009mt0.js";
|
|
@@ -17,17 +18,19 @@ import {
|
|
|
17
18
|
listFiles,
|
|
18
19
|
listFilesSync,
|
|
19
20
|
toPosixPath
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-4da76t62.js";
|
|
22
|
+
import"./index-71885zaq.js";
|
|
23
|
+
import"./index-bzd2ef7t.js";
|
|
24
|
+
import"./index-hdbwtdv2.js";
|
|
23
25
|
import"./index-ras0sdab.js";
|
|
24
26
|
import"./index-grta8ap3.js";
|
|
25
27
|
import"./index-kresp2n8.js";
|
|
26
28
|
import"./index-e3a6yx84.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
+
import"./index-x9c55pzy.js";
|
|
30
|
+
import"./index-d1jsmhhk.js";
|
|
29
31
|
import"./index-7wc9n8be.js";
|
|
30
32
|
import"./index-pym1cezq.js";
|
|
33
|
+
import"./index-jt8e1pje.js";
|
|
31
34
|
import"./index-zqpqyg8p.js";
|
|
32
35
|
import"./index-qjj6gddn.js";
|
|
33
36
|
import"./index-rt9qq1va.js";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
routeFactsVersion,
|
|
11
11
|
scanRoutes,
|
|
12
12
|
setRouteFactsStore
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-jn9rbhrx.js";
|
|
14
|
+
import"./index-0r5eqfc7.js";
|
|
15
15
|
import {
|
|
16
16
|
findConventionFiles,
|
|
17
17
|
findGlobalError,
|
|
@@ -22,22 +22,24 @@ import {
|
|
|
22
22
|
parseNavState,
|
|
23
23
|
selectRouteForRequest,
|
|
24
24
|
serverActionsUnsupportedMessage
|
|
25
|
-
} from "./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
} from "./index-8ct7rqy3.js";
|
|
26
|
+
import"./index-n629dy38.js";
|
|
27
27
|
import"./index-73z4esab.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-d158y67j.js";
|
|
29
29
|
import"./index-web361b8.js";
|
|
30
30
|
import"./index-fp8r0sqs.js";
|
|
31
31
|
import"./index-cjgqs13g.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
32
|
+
import"./index-cn86z041.js";
|
|
33
|
+
import"./index-4da76t62.js";
|
|
34
|
+
import"./index-bzd2ef7t.js";
|
|
35
|
+
import"./index-hdbwtdv2.js";
|
|
35
36
|
import"./index-6kp9r0d9.js";
|
|
36
37
|
import"./index-ras0sdab.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-x9c55pzy.js";
|
|
39
|
+
import"./index-d1jsmhhk.js";
|
|
39
40
|
import"./index-7wc9n8be.js";
|
|
40
41
|
import"./index-pym1cezq.js";
|
|
42
|
+
import"./index-jt8e1pje.js";
|
|
41
43
|
import"./index-zqpqyg8p.js";
|
|
42
44
|
import"./index-qjj6gddn.js";
|
|
43
45
|
import"./index-rt9qq1va.js";
|