@netlify/plugin-nextjs 4.4.0 → 4.4.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 +1 -1
- package/package.json +3 -4
package/lib/helpers/edge.js
CHANGED
|
@@ -44,7 +44,7 @@ const getMiddlewareBundle = async ({ middlewareDefinition, netlifyConfig, }) =>
|
|
|
44
44
|
chunks.push(exports);
|
|
45
45
|
return chunks.join('\n');
|
|
46
46
|
};
|
|
47
|
-
const copyEdgeSourceFile = ({ file, target, edgeFunctionDir, }) => fs_1.promises.copyFile((0, path_1.join)(__dirname, '..', 'templates', 'edge', file), (0, path_1.join)(edgeFunctionDir, target !== null && target !== void 0 ? target : file));
|
|
47
|
+
const copyEdgeSourceFile = ({ file, target, edgeFunctionDir, }) => fs_1.promises.copyFile((0, path_1.join)(__dirname, '..', '..', 'src', 'templates', 'edge', file), (0, path_1.join)(edgeFunctionDir, target !== null && target !== void 0 ? target : file));
|
|
48
48
|
// Edge functions don't support lookahead expressions
|
|
49
49
|
const stripLookahead = (regex) => regex.replace('^/(?!_next)', '^/');
|
|
50
50
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,15 +31,14 @@
|
|
|
31
31
|
"@types/fs-extra": "^9.0.13",
|
|
32
32
|
"@types/jest": "^27.4.1",
|
|
33
33
|
"@types/node": "^17.0.25",
|
|
34
|
-
"husky": "^7.0.4",
|
|
35
|
-
"if-env": "^1.0.4",
|
|
36
34
|
"npm-run-all": "^4.1.5",
|
|
37
35
|
"typescript": "^4.6.3"
|
|
38
36
|
},
|
|
39
37
|
"scripts": {
|
|
40
|
-
"prepublishOnly": "run-s
|
|
38
|
+
"prepublishOnly": "run-s clean build",
|
|
41
39
|
"publish:pull": "git pull",
|
|
42
40
|
"publish:install": "npm ci",
|
|
41
|
+
"publish:test": "cd .. && npm ci && npm test",
|
|
43
42
|
"clean": "rimraf lib",
|
|
44
43
|
"build": "tsc",
|
|
45
44
|
"watch": "tsc --watch",
|