@netlify/plugin-nextjs 4.41.0 → 4.41.1
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/lib/helpers/edge.js
CHANGED
|
@@ -125,10 +125,12 @@ const writeDevEdgeFunction = async ({ INTERNAL_EDGE_FUNCTIONS_SRC = '.netlify/ed
|
|
|
125
125
|
},
|
|
126
126
|
],
|
|
127
127
|
version: 1,
|
|
128
|
+
import_map: 'vendor/import_map.json',
|
|
128
129
|
};
|
|
129
130
|
const edgeFunctionRoot = (0, path_1.resolve)(INTERNAL_EDGE_FUNCTIONS_SRC);
|
|
130
131
|
await (0, fs_extra_1.emptyDir)(edgeFunctionRoot);
|
|
131
132
|
await (0, fs_extra_1.writeJson)((0, path_1.join)(edgeFunctionRoot, 'manifest.json'), manifest);
|
|
133
|
+
await (0, fs_extra_1.copy)(getEdgeTemplatePath('../vendor'), (0, path_1.join)(edgeFunctionRoot, 'vendor'));
|
|
132
134
|
await (0, fs_extra_1.copy)(getEdgeTemplatePath('../edge-shared'), (0, path_1.join)(edgeFunctionRoot, 'edge-shared'));
|
|
133
135
|
const edgeFunctionDir = (0, path_1.join)(edgeFunctionRoot, 'next-dev');
|
|
134
136
|
await (0, fs_extra_1.ensureDir)(edgeFunctionDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.41.
|
|
3
|
+
"version": "4.41.1",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"publish:test": "cd .. && npm ci && npm test",
|
|
56
56
|
"clean": "rimraf lib dist-types",
|
|
57
57
|
"build": "run-s build:*",
|
|
58
|
-
"build:vendor": "rimraf src/templates/vendor && deno vendor src/templates/vendor.ts --output=src/templates/vendor && patch src/templates/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/index.ts html_rewriter.patch",
|
|
58
|
+
"build:vendor": "rimraf src/templates/vendor && deno vendor src/templates/vendor.ts --output=src/templates/vendor && node patch-import-map.mjs && patch src/templates/vendor/deno.land/x/html_rewriter@v0.1.0-pre.17/index.ts html_rewriter.patch",
|
|
59
59
|
"build:tsc": "tsc",
|
|
60
60
|
"watch": "tsc --watch",
|
|
61
61
|
"prepare": "npm run build"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"imports": {
|
|
3
|
-
"https://ghuc.cc/worker-tools/resolvable-promise/index.ts": "./raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts",
|
|
4
|
-
"https://deno.land/": "./deno.land/",
|
|
5
|
-
"https://esm.sh/": "./esm.sh/",
|
|
6
|
-
"https://raw.githubusercontent.com/": "./raw.githubusercontent.com/"
|
|
7
|
-
},
|
|
8
2
|
"scopes": {
|
|
3
|
+
"../": {
|
|
4
|
+
"https://ghuc.cc/worker-tools/resolvable-promise/index.ts": "./raw.githubusercontent.com/worker-tools/resolvable-promise/master/index.ts",
|
|
5
|
+
"https://deno.land/": "./deno.land/",
|
|
6
|
+
"https://esm.sh/": "./esm.sh/",
|
|
7
|
+
"https://raw.githubusercontent.com/": "./raw.githubusercontent.com/"
|
|
8
|
+
},
|
|
9
9
|
"./esm.sh/": {
|
|
10
10
|
"/v91/next@12.2.5/deno/dist/compiled/cookie.js": "./esm.sh/v91/next@12.2.5/deno/dist/compiled/cookie.js"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|