@vercel/next 4.7.1 → 4.7.2
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/index.js +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -11783,7 +11783,10 @@ async function getSourceFilePathFromPage({
|
|
11783
11783
|
}) {
|
11784
11784
|
const usesSrcDir = await usesSrcDirectory(workPath);
|
11785
11785
|
const extensionsToTry = pageExtensions || ["js", "jsx", "ts", "tsx"];
|
11786
|
-
for (const pageType of [
|
11786
|
+
for (const pageType of [
|
11787
|
+
// middleware is not nested in pages/app
|
11788
|
+
...page === "middleware" ? [""] : ["pages", "app"]
|
11789
|
+
]) {
|
11787
11790
|
let fsPath = import_path2.default.join(workPath, pageType, page);
|
11788
11791
|
if (usesSrcDir) {
|
11789
11792
|
fsPath = import_path2.default.join(workPath, "src", pageType, page);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "4.7.
|
3
|
+
"version": "4.7.2",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@types/semver": "6.0.0",
|
31
31
|
"@types/text-table": "0.2.1",
|
32
32
|
"@types/webpack-sources": "3.2.0",
|
33
|
-
"@vercel/build-utils": "10.
|
33
|
+
"@vercel/build-utils": "10.3.1",
|
34
34
|
"@vercel/routing-utils": "5.0.4",
|
35
35
|
"async-sema": "3.0.1",
|
36
36
|
"buffer-crc32": "0.2.13",
|