@wular/pnext 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/_chunks/{aliases-pycbtjt1.js → aliases-s49gt0bb.js} +5 -5
- package/dist/server/_chunks/{analyze-4d9e00g9.js → analyze-c45xjea8.js} +8 -8
- package/dist/server/_chunks/{boot-bhemypxz.js → boot-exjk45ry.js} +8 -8
- package/dist/server/_chunks/{build-c991dv65.js → build-m49fem3j.js} +4 -4
- package/dist/server/_chunks/{build-kh5e3x48.js → build-ntq282xh.js} +82 -40
- package/dist/server/_chunks/{build-tier-0a96kmx3.js → build-tier-byqfyz34.js} +17 -17
- package/dist/server/_chunks/{config-27rj7830.js → config-1hdw96je.js} +2 -2
- package/dist/server/_chunks/{config-0tvz03a6.js → config-m2yaayer.js} +3 -3
- package/dist/server/_chunks/{create-9rvwshsp.js → create-k089tdt7.js} +3 -3
- package/dist/server/_chunks/{dev-ex9exynt.js → dev-kwp1t8b3.js} +2 -2
- package/dist/server/_chunks/{generate-myw9hef7.js → generate-ap2zs26g.js} +3 -3
- package/dist/server/_chunks/{index-x2m17v9c.js → index-0f5t5730.js} +16 -13
- package/dist/server/_chunks/{index-xh1nbk46.js → index-1q52cw31.js} +7 -7
- package/dist/server/_chunks/{index-nf3df4jy.js → index-1tmqkr6x.js} +3 -3
- package/dist/server/_chunks/index-1xrvw3zp.js +92 -0
- package/dist/server/_chunks/{index-yrjkqtfj.js → index-4g6amwtg.js} +2 -2
- package/dist/server/_chunks/{index-11xpbfej.js → index-4hspm5ez.js} +1 -1
- package/dist/server/_chunks/{index-qcrvt6er.js → index-56jw1658.js} +2 -2
- package/dist/server/_chunks/{index-d158y67j.js → index-6w807g31.js} +12 -4
- package/dist/server/_chunks/{index-29pq0kax.js → index-72wjyacg.js} +2 -2
- package/dist/server/_chunks/{index-3e075kny.js → index-81qnfmzz.js} +1 -1
- package/dist/server/_chunks/{index-3ycf5ckv.js → index-8hy8qskn.js} +3 -3
- package/dist/server/_chunks/{index-he6n2bvp.js → index-8y2yft9b.js} +1 -1
- package/dist/server/_chunks/{index-8ct7rqy3.js → index-a4asdd4j.js} +1 -1
- package/dist/server/_chunks/{index-1pzm1hdy.js → index-cqft8ae4.js} +7 -7
- package/dist/server/_chunks/{index-9hz3s0m8.js → index-dd4tb5vy.js} +1 -1
- package/dist/server/_chunks/{index-tq3b39a5.js → index-drfxdvvh.js} +4 -4
- package/dist/server/_chunks/{index-4da76t62.js → index-e63ma63t.js} +1 -1
- package/dist/server/_chunks/{index-rgj5mx84.js → index-ed6rwv1x.js} +1 -1
- package/dist/server/_chunks/{index-dgr390q7.js → index-f76517s5.js} +23 -23
- package/dist/server/_chunks/{index-b7j671dj.js → index-fdc7wz3a.js} +1 -1
- package/dist/server/_chunks/{index-0yjv5v47.js → index-g39z5s9d.js} +3 -3
- package/dist/server/_chunks/{index-cvr4z22m.js → index-hw5k2sgj.js} +1 -1
- package/dist/server/_chunks/{index-evhd413j.js → index-jh486fye.js} +1 -1
- package/dist/server/_chunks/{index-fjv96re1.js → index-mjvq5c7e.js} +8 -8
- package/dist/server/_chunks/{index-kdhxpwyq.js → index-mph0cmh9.js} +3 -3
- package/dist/server/_chunks/{index-gkndxkxf.js → index-nxg8k7cg.js} +2 -2
- package/dist/server/_chunks/{index-jn9rbhrx.js → index-p79ck9cd.js} +4 -4
- package/dist/server/_chunks/{index-hdbwtdv2.js → index-pshjr3qm.js} +1 -1
- package/dist/server/_chunks/{index-n629dy38.js → index-r1kzsnyp.js} +4 -4
- package/dist/server/_chunks/{index-cn86z041.js → index-ra6fsg5v.js} +1 -1
- package/dist/server/_chunks/{index-38xpdxwd.js → index-tgwt3kwf.js} +4 -4
- package/dist/server/_chunks/{index-71885zaq.js → index-x3cvacmf.js} +4 -4
- package/dist/server/_chunks/{index-j681c48a.js → index-zq077xjc.js} +1 -1
- package/dist/server/_chunks/{index-rjegyfx4.js → index-zvy5134a.js} +5 -5
- package/dist/server/_chunks/{loader-5en7wpt5.js → loader-5j9bjhw7.js} +6 -6
- package/dist/server/_chunks/{modules-t92favpj.js → modules-gy48pdw3.js} +8 -8
- package/dist/server/_chunks/{pipeline-4t9q43ht.js → pipeline-m8ac90dn.js} +11 -11
- package/dist/server/_chunks/{production-385bw8df.js → production-26vqtxvg.js} +1 -1
- package/dist/server/_chunks/{proxy-gfhmktbk.js → proxy-74a1mg4v.js} +7 -7
- package/dist/server/_chunks/{proxy-config-60gprphe.js → proxy-config-7hnexa7b.js} +5 -5
- package/dist/server/_chunks/{router-xnrva921.js → router-frkywyzb.js} +4 -4
- package/dist/server/_chunks/{routes-ht868pdc.js → routes-y7de16ja.js} +7 -7
- package/dist/server/_chunks/{run-d40d63ag.js → run-q8aq4cez.js} +4 -4
- package/dist/server/_chunks/{server-2p8fgqq2.js → server-21t1fzp7.js} +19 -19
- package/dist/server/_chunks/{tsconfig-defaults-bcn34eqb.js → tsconfig-defaults-bcq068bd.js} +3 -3
- package/dist/server/_chunks/{typegen-dvtcjtaw.js → typegen-wdqj67rx.js} +10 -10
- package/dist/server/cli/index.js +11 -11
- package/dist/server/cli/start.js +5 -5
- package/dist/server/compat/next/config-headers.js +4 -4
- package/dist/server/compat/next/font/cache.js +4 -4
- package/dist/server/compat/next/font/local.js +5 -5
- package/dist/server/compat/next/font/runtime.js +5 -5
- package/dist/server/compat/next/navigation.js +4 -4
- package/dist/server/compat/next/redirects.js +4 -4
- package/dist/server/compat/next/rewrites.js +3 -3
- package/dist/server/generation.json +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/vercel-warm.ts +2 -1
- package/src/cli/adapters/vercel.ts +43 -4
- package/src/cli/serve/standalone.ts +49 -17
- package/src/css/assets.ts +9 -1
- package/src/render/renderer.ts +6 -3
- package/dist/server/_chunks/index-gcmj16xy.js +0 -92
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
reactCompilerOptions,
|
|
15
15
|
reactServerLayerAliases,
|
|
16
16
|
rewriteNextFontSource
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
} from "./index-mph0cmh9.js";
|
|
18
|
+
import"./index-g39z5s9d.js";
|
|
19
19
|
import"./index-6q7zvrap.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-e63ma63t.js";
|
|
21
|
+
import"./index-x3cvacmf.js";
|
|
22
22
|
import"./index-bzd2ef7t.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-pshjr3qm.js";
|
|
24
24
|
import"./index-grta8ap3.js";
|
|
25
25
|
import"./index-kresp2n8.js";
|
|
26
26
|
import"./index-e3a6yx84.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./index-
|
|
2
|
+
import"./index-p79ck9cd.js";
|
|
3
3
|
import"./index-0r5eqfc7.js";
|
|
4
4
|
import {
|
|
5
5
|
matchRoute
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-a4asdd4j.js";
|
|
7
|
+
import"./index-r1kzsnyp.js";
|
|
8
8
|
import"./index-73z4esab.js";
|
|
9
9
|
import {
|
|
10
10
|
emittedAssetName,
|
|
11
11
|
publishEmittedAssets,
|
|
12
12
|
routeCssAssetNames
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-6w807g31.js";
|
|
14
14
|
import"./index-web361b8.js";
|
|
15
15
|
import"./index-fp8r0sqs.js";
|
|
16
16
|
import"./index-cjgqs13g.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-ra6fsg5v.js";
|
|
18
18
|
import {
|
|
19
19
|
listFiles
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-e63ma63t.js";
|
|
21
21
|
import {
|
|
22
22
|
loadConfig
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-x3cvacmf.js";
|
|
24
24
|
import"./index-bzd2ef7t.js";
|
|
25
25
|
import {
|
|
26
26
|
buildManifestFile
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-pshjr3qm.js";
|
|
28
28
|
import {
|
|
29
29
|
bold,
|
|
30
30
|
cyan,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
registerCompatBootExtensions
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1q52cw31.js";
|
|
5
5
|
import"./index-2wfv4kvx.js";
|
|
6
6
|
import"./index-wm36rj4v.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
7
|
+
import"./index-a4asdd4j.js";
|
|
8
|
+
import"./index-mph0cmh9.js";
|
|
9
|
+
import"./index-8hy8qskn.js";
|
|
10
|
+
import"./index-g39z5s9d.js";
|
|
11
11
|
import"./index-6q7zvrap.js";
|
|
12
12
|
import"./index-z88qv16t.js";
|
|
13
13
|
import"./index-2vz0wzdn.js";
|
|
@@ -18,11 +18,11 @@ import"./index-6b009mt0.js";
|
|
|
18
18
|
import"./index-4zzebszd.js";
|
|
19
19
|
import"./index-sq3kvz3g.js";
|
|
20
20
|
import"./index-ckkdpht5.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-e63ma63t.js";
|
|
22
|
+
import"./index-x3cvacmf.js";
|
|
23
23
|
import"./index-bzd2ef7t.js";
|
|
24
24
|
import"./index-jcsjq3d1.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-pshjr3qm.js";
|
|
26
26
|
import"./index-grta8ap3.js";
|
|
27
27
|
import"./index-kresp2n8.js";
|
|
28
28
|
import"./index-e3a6yx84.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
stopCssWorker,
|
|
20
20
|
warmCssPipeline,
|
|
21
21
|
warmCssWorker
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-r1kzsnyp.js";
|
|
23
23
|
import"./index-73z4esab.js";
|
|
24
24
|
import {
|
|
25
25
|
assetHref,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
routeCssAssetNames,
|
|
36
36
|
routeCssHref,
|
|
37
37
|
withAssetPrefix
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-6w807g31.js";
|
|
39
39
|
import"./index-web361b8.js";
|
|
40
40
|
import"./index-fp8r0sqs.js";
|
|
41
41
|
import"./index-cjgqs13g.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-e63ma63t.js";
|
|
43
43
|
import"./index-bzd2ef7t.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-pshjr3qm.js";
|
|
45
45
|
import"./index-6kp9r0d9.js";
|
|
46
46
|
import"./index-d1jsmhhk.js";
|
|
47
47
|
import"./index-7wc9n8be.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
buildClientEntries,
|
|
11
11
|
emitStaticClientChunks,
|
|
12
12
|
startClientSources
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-cqft8ae4.js";
|
|
14
14
|
import {
|
|
15
15
|
writeTypegen
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-tgwt3kwf.js";
|
|
17
17
|
import {
|
|
18
18
|
handleRouteModule,
|
|
19
19
|
staticRouteParams
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
assertNoServerActionsWithoutCompat,
|
|
24
24
|
materializeRouteFacts,
|
|
25
25
|
scanRoutes
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-p79ck9cd.js";
|
|
27
27
|
import {
|
|
28
28
|
devServerModuleHref,
|
|
29
29
|
resetModuleGraphFailure,
|
|
30
30
|
setEmitCompiledSpecifiersManifest,
|
|
31
31
|
setReleaseCompile
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-mjvq5c7e.js";
|
|
33
33
|
import"./index-n4hxpng2.js";
|
|
34
34
|
import"./index-x3yn4ywm.js";
|
|
35
35
|
import {
|
|
@@ -37,9 +37,9 @@ import {
|
|
|
37
37
|
compiledSourceGraph,
|
|
38
38
|
flushDevModuleCaches,
|
|
39
39
|
registerServerRuntime
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-zvy5134a.js";
|
|
41
41
|
import"./index-0r5eqfc7.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-81qnfmzz.js";
|
|
43
43
|
import {
|
|
44
44
|
clientEntryName,
|
|
45
45
|
defaultNotFoundDocument,
|
|
@@ -61,21 +61,21 @@ import {
|
|
|
61
61
|
staticParamsFor,
|
|
62
62
|
staticRouteMetadataKey,
|
|
63
63
|
withDynamicMetadataRoutes
|
|
64
|
-
} from "./index-
|
|
64
|
+
} from "./index-0f5t5730.js";
|
|
65
65
|
import {
|
|
66
66
|
findLayouts
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-a4asdd4j.js";
|
|
68
68
|
import {
|
|
69
69
|
findProxyFile,
|
|
70
70
|
proxyExternalLoadTarget,
|
|
71
71
|
proxyRoutePatterns,
|
|
72
72
|
validateProxyFiles
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-8hy8qskn.js";
|
|
74
74
|
import {
|
|
75
75
|
serverBundleTargetForRuntime,
|
|
76
76
|
throwIfModuleGraphFailed
|
|
77
|
-
} from "./index-
|
|
78
|
-
import"./index-
|
|
77
|
+
} from "./index-g39z5s9d.js";
|
|
78
|
+
import"./index-4g6amwtg.js";
|
|
79
79
|
import"./index-jbj7ehef.js";
|
|
80
80
|
import {
|
|
81
81
|
buildGlobalCss,
|
|
@@ -84,21 +84,21 @@ import {
|
|
|
84
84
|
globalCssSources,
|
|
85
85
|
prepareRouteCssChunks,
|
|
86
86
|
warmCssPipeline
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-r1kzsnyp.js";
|
|
88
88
|
import {
|
|
89
89
|
createVerboseLogger
|
|
90
90
|
} from "./index-73z4esab.js";
|
|
91
91
|
import {
|
|
92
92
|
emittedAssetNames,
|
|
93
93
|
registerCssRuntime
|
|
94
|
-
} from "./index-
|
|
94
|
+
} from "./index-6w807g31.js";
|
|
95
95
|
import {
|
|
96
96
|
nextCompatEnabled
|
|
97
97
|
} from "./index-web361b8.js";
|
|
98
98
|
import"./index-knp0s912.js";
|
|
99
99
|
import {
|
|
100
100
|
frameworkFingerprint
|
|
101
|
-
} from "./index-
|
|
101
|
+
} from "./index-1xrvw3zp.js";
|
|
102
102
|
import"./index-ye9hmsvf.js";
|
|
103
103
|
import {
|
|
104
104
|
setRequestRuntime
|
|
@@ -110,10 +110,10 @@ import {
|
|
|
110
110
|
} from "./index-fp8r0sqs.js";
|
|
111
111
|
import"./index-cjgqs13g.js";
|
|
112
112
|
import"./index-yhxkxghe.js";
|
|
113
|
-
import"./index-
|
|
113
|
+
import"./index-72wjyacg.js";
|
|
114
114
|
import {
|
|
115
115
|
interceptionMarkerLevels
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-ra6fsg5v.js";
|
|
117
117
|
import {
|
|
118
118
|
ensureEmptyDir,
|
|
119
119
|
listFiles,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
toPosixPath,
|
|
124
124
|
writeFileAtomic,
|
|
125
125
|
writeText
|
|
126
|
-
} from "./index-
|
|
126
|
+
} from "./index-e63ma63t.js";
|
|
127
127
|
import {
|
|
128
128
|
cacheRoot,
|
|
129
129
|
namedBunBinary
|
|
@@ -131,13 +131,13 @@ import {
|
|
|
131
131
|
import"./index-vz0km5qk.js";
|
|
132
132
|
import {
|
|
133
133
|
bootstrapCompat
|
|
134
|
-
} from "./index-
|
|
134
|
+
} from "./index-drfxdvvh.js";
|
|
135
135
|
import {
|
|
136
136
|
devOutSegment,
|
|
137
137
|
frameworkRuntimeSpecifiers,
|
|
138
138
|
loadConfig,
|
|
139
139
|
pathToFileHref
|
|
140
|
-
} from "./index-
|
|
140
|
+
} from "./index-x3cvacmf.js";
|
|
141
141
|
import {
|
|
142
142
|
outCachePath
|
|
143
143
|
} from "./index-bzd2ef7t.js";
|
|
@@ -146,12 +146,11 @@ import {
|
|
|
146
146
|
PREBUNDLE_STAMP,
|
|
147
147
|
buildIndexFile,
|
|
148
148
|
buildManifestFile,
|
|
149
|
-
prebundledFile,
|
|
150
149
|
readBuildIndex,
|
|
151
150
|
readPrebundleStamp,
|
|
152
151
|
releaseSourceFile,
|
|
153
152
|
standaloneOriginsFile
|
|
154
|
-
} from "./index-
|
|
153
|
+
} from "./index-pshjr3qm.js";
|
|
155
154
|
import {
|
|
156
155
|
bold,
|
|
157
156
|
cyan,
|
|
@@ -229,10 +228,12 @@ async function writeVercelOutput(config, manifest, options = {}) {
|
|
|
229
228
|
await writeServerFunction(config.outPath, manifest, functionPath, log);
|
|
230
229
|
await log.step("copy static files", () => copyStaticFiles(staticPath, path.join(outputPath, "static"), (relative) => !staticFiles[relative] || canServeStaticOnVercel(staticFiles[relative])));
|
|
231
230
|
const overrides = await staticOverrides(staticPath, staticFiles);
|
|
231
|
+
const proxy = await proxyRoutes(config);
|
|
232
|
+
await log.step("drop public files from the function", () => dropPublicFiles(config.publicPath, path.join(functionPath, "static"), staticFiles, proxy.map((route) => new RegExp(route.src)), config.basePath));
|
|
232
233
|
const routes = [
|
|
233
234
|
...compatStaticRewrite(config, outputPath),
|
|
234
235
|
...await immutableAssetRoutes(staticPath, manifest.publicAssets),
|
|
235
|
-
...
|
|
236
|
+
...proxy,
|
|
236
237
|
...staticHeaderRoutes(staticFiles),
|
|
237
238
|
{ handle: "filesystem" },
|
|
238
239
|
{ src: "^/.*$", dest: `/${SERVER_FUNCTION}` }
|
|
@@ -476,7 +477,7 @@ async function immutableAssetRoutes(publicDir, publicAssets = []) {
|
|
|
476
477
|
const app = new Set(publicAssets);
|
|
477
478
|
const built = publicAssets.length > 0 ? (await listFiles(publicDir)).map((file) => toPosixPath(path.relative(publicDir, file))).filter((relative) => !app.has(relative) && immutableAssetPath(relative)) : [];
|
|
478
479
|
const patterns = immutableAssetPatterns(built, publicAssets);
|
|
479
|
-
return routeSources(patterns, (source) => `^/(?:${source})
|
|
480
|
+
return routeSources(patterns, (source) => `^/(?:${source})$`).map((src) => ({
|
|
480
481
|
src,
|
|
481
482
|
headers: { "cache-control": immutableCacheControl },
|
|
482
483
|
continue: true,
|
|
@@ -486,13 +487,13 @@ async function immutableAssetRoutes(publicDir, publicAssets = []) {
|
|
|
486
487
|
function immutableAssetPatterns(built, publicAssets) {
|
|
487
488
|
const appDirs = new Set(publicAssets.flatMap(ancestorDirs));
|
|
488
489
|
const prefixes = [...new Set(immutableAssetPrefixes())];
|
|
489
|
-
const patterns = prefixes.filter((prefix) => !appDirs.has(prefix)).map(escapeRegex);
|
|
490
|
+
const patterns = prefixes.filter((prefix) => !appDirs.has(prefix)).map((prefix) => `${escapeRegex(prefix)}.+`);
|
|
490
491
|
for (const relative of built) {
|
|
491
492
|
const prefix = prefixes.find((prefix2) => relative.startsWith(prefix2));
|
|
492
493
|
if (!prefix || !appDirs.has(prefix))
|
|
493
494
|
continue;
|
|
494
495
|
const dir = ancestorDirs(relative).find((dir2) => dir2.length > prefix.length && !appDirs.has(dir2));
|
|
495
|
-
patterns.push(dir ? escapeRegex(requestPath(dir)) :
|
|
496
|
+
patterns.push(dir ? `${escapeRegex(requestPath(dir))}.+` : escapeRegex(requestPath(relative)));
|
|
496
497
|
}
|
|
497
498
|
return [...new Set(patterns)];
|
|
498
499
|
}
|
|
@@ -510,6 +511,19 @@ var functionOnlyHeaders = new Set([
|
|
|
510
511
|
"connection",
|
|
511
512
|
"set-cookie"
|
|
512
513
|
]);
|
|
514
|
+
async function dropPublicFiles(publicDir, dir, staticFiles, proxied, basePath) {
|
|
515
|
+
const publicFiles = existsSync(publicDir) ? await listFiles(publicDir) : [];
|
|
516
|
+
const dropped = publicFiles.map((source) => toPosixPath(path.relative(publicDir, source))).filter((relative) => {
|
|
517
|
+
const metadata = staticFiles[relative];
|
|
518
|
+
if (relative.endsWith(".html") || metadata && !canServeStaticOnVercel(metadata))
|
|
519
|
+
return false;
|
|
520
|
+
if (requestPath(relative) !== relative)
|
|
521
|
+
return false;
|
|
522
|
+
const paths = [`/${relative}`, `${basePath}/${relative}`];
|
|
523
|
+
return !proxied.some((src) => paths.some((pathname) => src.test(pathname)));
|
|
524
|
+
});
|
|
525
|
+
await Promise.all(dropped.map((relative) => rm(path.join(dir, relative), { force: true })));
|
|
526
|
+
}
|
|
513
527
|
function canServeStaticOnVercel(metadata) {
|
|
514
528
|
if (metadata.status !== 200)
|
|
515
529
|
return false;
|
|
@@ -962,8 +976,12 @@ var runtimeDependencies = new Set(Object.keys(frameworkPackage.dependencies ?? {
|
|
|
962
976
|
var buildOnlyModule = /^(?:build|modules|loader|compile|esbuild|dev|run|typegen|analyze|create)$/;
|
|
963
977
|
var builtins = new Set(builtinModules);
|
|
964
978
|
var scriptFile = /\.(?:[cm]?[jt]sx?)$/;
|
|
979
|
+
var prebundled;
|
|
980
|
+
function servesPrebundle() {
|
|
981
|
+
return prebundled ??= readPrebundleStamp(frameworkRoot2, frameworkFingerprint()) !== undefined;
|
|
982
|
+
}
|
|
965
983
|
function frameworkStartEntry() {
|
|
966
|
-
return
|
|
984
|
+
return servesPrebundle() ? path4.join(frameworkRoot2, "dist", "server", "cli", "start.js") : path4.join(frameworkRoot2, "src", "cli", "start.ts");
|
|
967
985
|
}
|
|
968
986
|
function startStandalone(config) {
|
|
969
987
|
const input = {
|
|
@@ -1151,7 +1169,11 @@ function createTracer(config, from, onReady) {
|
|
|
1151
1169
|
const appFile = release && !isInside(outPath, target2) && !isInside(cache, target2) && !shipped(target2);
|
|
1152
1170
|
if (appFile && scriptFile.test(target2))
|
|
1153
1171
|
continue;
|
|
1154
|
-
|
|
1172
|
+
const stat = statSync(target2, { throwIfNoEntry: false });
|
|
1173
|
+
if (stat?.isDirectory() && !release && packageDataDir(target2, file))
|
|
1174
|
+
for (const asset of dataFiles(target2))
|
|
1175
|
+
setFile(trace, place(asset), asset);
|
|
1176
|
+
if (!stat?.isFile())
|
|
1155
1177
|
continue;
|
|
1156
1178
|
const at = appFile ? toPosixPath(path4.join("server", "assets", path4.relative(config.workspaceRoot, target2))) : place(target2);
|
|
1157
1179
|
if (appFile)
|
|
@@ -1284,15 +1306,9 @@ function createPlacer(outPath, cache, claims = new Map) {
|
|
|
1284
1306
|
const dir = packageDir(frameworkRoot2, frameworkPackage.name);
|
|
1285
1307
|
return `${dir}/${toPosixPath(path4.relative(frameworkRoot2, file))}`;
|
|
1286
1308
|
}
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
const rest = posix.slice(at + "/node_modules/".length).split("/");
|
|
1291
|
-
const length = rest[0].startsWith("@") ? 2 : 1;
|
|
1292
|
-
const name2 = rest.slice(0, length).join("/");
|
|
1293
|
-
const root2 = `${posix.slice(0, at)}/node_modules/${name2}`;
|
|
1294
|
-
return [packageDir(root2, name2), ...rest.slice(length)].join("/");
|
|
1295
|
-
}
|
|
1309
|
+
const owner = installedPackage(file);
|
|
1310
|
+
if (owner)
|
|
1311
|
+
return [packageDir(owner.root, owner.name), ...owner.rest].join("/");
|
|
1296
1312
|
const root = packageRoot(path4.dirname(file));
|
|
1297
1313
|
const name = root && readPackageName(root);
|
|
1298
1314
|
if (!root || !name)
|
|
@@ -1329,6 +1345,16 @@ function addTree(root, dest, trace) {
|
|
|
1329
1345
|
};
|
|
1330
1346
|
visit(root, new Set);
|
|
1331
1347
|
}
|
|
1348
|
+
function installedPackage(file) {
|
|
1349
|
+
const posix = toPosixPath(file);
|
|
1350
|
+
const at = posix.lastIndexOf("/node_modules/");
|
|
1351
|
+
if (at === -1)
|
|
1352
|
+
return;
|
|
1353
|
+
const rest = posix.slice(at + "/node_modules/".length).split("/");
|
|
1354
|
+
const length = rest[0].startsWith("@") ? 2 : 1;
|
|
1355
|
+
const name = rest.slice(0, length).join("/");
|
|
1356
|
+
return { root: `${posix.slice(0, at)}/node_modules/${name}`, name, rest: rest.slice(length) };
|
|
1357
|
+
}
|
|
1332
1358
|
function installed(file) {
|
|
1333
1359
|
return toPosixPath(file).includes("/node_modules/");
|
|
1334
1360
|
}
|
|
@@ -1391,10 +1417,12 @@ function resolveEdge(specifier, from, require2 = false) {
|
|
|
1391
1417
|
return target;
|
|
1392
1418
|
}
|
|
1393
1419
|
function frameworkCounterparts(file) {
|
|
1394
|
-
const
|
|
1395
|
-
if (
|
|
1420
|
+
const src = path4.join(frameworkRoot2, "src");
|
|
1421
|
+
if (!servesPrebundle() || !isInside(src, file))
|
|
1396
1422
|
return [];
|
|
1397
|
-
|
|
1423
|
+
const relative = path4.relative(src, file).replace(/\.tsx?$/, ".js");
|
|
1424
|
+
const counterpart = path4.join(frameworkRoot2, "dist", "server", relative);
|
|
1425
|
+
return existsSync4(counterpart) ? [counterpart, path4.join(frameworkRoot2, PREBUNDLE_STAMP)] : [];
|
|
1398
1426
|
}
|
|
1399
1427
|
function moduleName(file) {
|
|
1400
1428
|
const base = path4.basename(file, path4.extname(file));
|
|
@@ -1428,6 +1456,20 @@ function addPackageFiles(file, trace, place) {
|
|
|
1428
1456
|
return;
|
|
1429
1457
|
}
|
|
1430
1458
|
}
|
|
1459
|
+
function packageDataDir(dir, from) {
|
|
1460
|
+
const root = installedPackage(from)?.root ?? packageRoot(path4.dirname(from));
|
|
1461
|
+
if (!root || !isInside(root, dir) || isInside(dir, path4.dirname(from)))
|
|
1462
|
+
return false;
|
|
1463
|
+
return !path4.relative(root, dir).split(path4.sep).includes("node_modules");
|
|
1464
|
+
}
|
|
1465
|
+
function dataFiles(dir) {
|
|
1466
|
+
return readdirSync2(dir, { withFileTypes: true }).flatMap((entry) => {
|
|
1467
|
+
const file = path4.join(dir, entry.name);
|
|
1468
|
+
if (entry.isDirectory())
|
|
1469
|
+
return entry.name === "node_modules" ? [] : dataFiles(file);
|
|
1470
|
+
return entry.isFile() ? [file] : [];
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1431
1473
|
function packageRoot(dir) {
|
|
1432
1474
|
for (;dir !== path4.dirname(dir); dir = path4.dirname(dir)) {
|
|
1433
1475
|
if (existsSync4(path4.join(dir, "package.json")))
|
|
@@ -1459,7 +1501,7 @@ function rewriteSpecifiers(file, source, edits) {
|
|
|
1459
1501
|
function urlTarget(specifier, from) {
|
|
1460
1502
|
try {
|
|
1461
1503
|
const url = new URL(specifier, pathToFileURL(from));
|
|
1462
|
-
return url.protocol === "file:" ? fileURLToPath2(url) : undefined;
|
|
1504
|
+
return url.protocol === "file:" ? path4.resolve(fileURLToPath2(url)) : undefined;
|
|
1463
1505
|
} catch {
|
|
1464
1506
|
return;
|
|
1465
1507
|
}
|
|
@@ -14,37 +14,37 @@ import {
|
|
|
14
14
|
treeSegmentFile,
|
|
15
15
|
validateBuild,
|
|
16
16
|
warnNextMetadataBuildIssues
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-zq077xjc.js";
|
|
18
18
|
import {
|
|
19
19
|
writeTsconfigDefaults
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-fdc7wz3a.js";
|
|
21
21
|
import {
|
|
22
22
|
generateTypedRoutes
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-dd4tb5vy.js";
|
|
24
24
|
import {
|
|
25
25
|
scanRootParamTypes
|
|
26
26
|
} from "./index-v1ags1na.js";
|
|
27
27
|
import {
|
|
28
28
|
discoverStaticMetadataFiles
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-0f5t5730.js";
|
|
30
30
|
import {
|
|
31
31
|
deploymentId,
|
|
32
32
|
turbopackLoaderRules
|
|
33
33
|
} from "./index-wm36rj4v.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-a4asdd4j.js";
|
|
35
35
|
import {
|
|
36
36
|
nextCompatEnabled,
|
|
37
37
|
reactCompatEnabled,
|
|
38
38
|
reactCompilerOptions
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-mph0cmh9.js";
|
|
40
40
|
import {
|
|
41
41
|
findProxyFile,
|
|
42
42
|
proxyExternalLoadTarget
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-8hy8qskn.js";
|
|
44
44
|
import {
|
|
45
45
|
devServerModuleHref
|
|
46
|
-
} from "./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
} from "./index-g39z5s9d.js";
|
|
47
|
+
import"./index-6w807g31.js";
|
|
48
48
|
import"./index-web361b8.js";
|
|
49
49
|
import {
|
|
50
50
|
preferredRegionForRoute
|
|
@@ -52,10 +52,10 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
fontLinkHeaderValue,
|
|
54
54
|
takeFontHeaderPreloads
|
|
55
|
-
} from "./index-
|
|
56
|
-
import"./index-
|
|
55
|
+
} from "./index-nxg8k7cg.js";
|
|
56
|
+
import"./index-56jw1658.js";
|
|
57
57
|
import"./index-knp0s912.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-1xrvw3zp.js";
|
|
59
59
|
import"./index-fn1chkkd.js";
|
|
60
60
|
import"./index-ye9hmsvf.js";
|
|
61
61
|
import"./index-6q7zvrap.js";
|
|
@@ -92,19 +92,19 @@ import {
|
|
|
92
92
|
emitCustomServerShim
|
|
93
93
|
} from "./index-8kcxdfya.js";
|
|
94
94
|
import"./index-yhxkxghe.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
95
|
+
import"./index-72wjyacg.js";
|
|
96
|
+
import"./index-ra6fsg5v.js";
|
|
97
97
|
import {
|
|
98
98
|
listFiles,
|
|
99
99
|
toPosixPath
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-e63ma63t.js";
|
|
101
101
|
import"./index-vz0km5qk.js";
|
|
102
102
|
import {
|
|
103
103
|
pathToFileHref
|
|
104
|
-
} from "./index-
|
|
104
|
+
} from "./index-x3cvacmf.js";
|
|
105
105
|
import"./index-bzd2ef7t.js";
|
|
106
106
|
import"./index-jcsjq3d1.js";
|
|
107
|
-
import"./index-
|
|
107
|
+
import"./index-pshjr3qm.js";
|
|
108
108
|
import"./index-ras0sdab.js";
|
|
109
109
|
import {
|
|
110
110
|
legacyRequestAPIs
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
pnextAliases,
|
|
10
10
|
publicEnvDefines,
|
|
11
11
|
registerConfigSource
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-x3cvacmf.js";
|
|
13
13
|
import {
|
|
14
14
|
outCachePath,
|
|
15
15
|
standaloneOutSegment
|
|
16
16
|
} from "./index-bzd2ef7t.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-pshjr3qm.js";
|
|
18
18
|
import"./index-grta8ap3.js";
|
|
19
19
|
import"./index-kresp2n8.js";
|
|
20
20
|
import"./index-e3a6yx84.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
registerConfigSource
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-4hspm5ez.js";
|
|
5
5
|
import"./index-m63czgq5.js";
|
|
6
6
|
import"./index-cjgqs13g.js";
|
|
7
7
|
import"./index-jks0x0a1.js";
|
|
@@ -9,9 +9,9 @@ import"./index-6b009mt0.js";
|
|
|
9
9
|
import"./index-4zzebszd.js";
|
|
10
10
|
import"./index-sq3kvz3g.js";
|
|
11
11
|
import"./index-ckkdpht5.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-x3cvacmf.js";
|
|
13
13
|
import"./index-bzd2ef7t.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-pshjr3qm.js";
|
|
15
15
|
import"./index-grta8ap3.js";
|
|
16
16
|
import"./index-kresp2n8.js";
|
|
17
17
|
import"./index-e3a6yx84.js";
|
|
@@ -3,12 +3,12 @@ import { join as __pnextJoin } from "node:path";
|
|
|
3
3
|
const __PNEXT_PACKAGE_ROOT__ = __pnextJoin(import.meta.dirname, "../../..");
|
|
4
4
|
import {
|
|
5
5
|
latestPnextVersionRange
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-jh486fye.js";
|
|
7
7
|
import {
|
|
8
8
|
formatDuration
|
|
9
9
|
} from "./index-73z4esab.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-e63ma63t.js";
|
|
11
|
+
import"./index-pshjr3qm.js";
|
|
12
12
|
import {
|
|
13
13
|
bold,
|
|
14
14
|
cyan,
|
|
@@ -35,8 +35,8 @@ function nameDevProcess() {
|
|
|
35
35
|
async function dev(options = {}) {
|
|
36
36
|
nameDevProcess();
|
|
37
37
|
const [{ loadConfig }, { startDevServer }] = await Promise.all([
|
|
38
|
-
import("./config-
|
|
39
|
-
import("./server-
|
|
38
|
+
import("./config-1hdw96je.js"),
|
|
39
|
+
import("./server-21t1fzp7.js")
|
|
40
40
|
]);
|
|
41
41
|
markBoot("dev:imports");
|
|
42
42
|
const config = await loadConfig(options.root, { dev: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
generateTypedRoutes
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-dd4tb5vy.js";
|
|
5
5
|
import"./index-v1ags1na.js";
|
|
6
6
|
import"./index-m63czgq5.js";
|
|
7
7
|
import"./index-cjgqs13g.js";
|
|
@@ -10,8 +10,8 @@ import"./index-6b009mt0.js";
|
|
|
10
10
|
import"./index-4zzebszd.js";
|
|
11
11
|
import"./index-sq3kvz3g.js";
|
|
12
12
|
import"./index-ckkdpht5.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-e63ma63t.js";
|
|
14
|
+
import"./index-pshjr3qm.js";
|
|
15
15
|
import"./index-kresp2n8.js";
|
|
16
16
|
import"./index-e3a6yx84.js";
|
|
17
17
|
import"./index-7wc9n8be.js";
|