@netlify/plugin-nextjs 4.20.0 → 4.21.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.1",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@delucis/if-env": "^1.1.2",
|
|
33
|
-
"@netlify/build": "^27.16.
|
|
33
|
+
"@netlify/build": "^27.16.1",
|
|
34
34
|
"@types/fs-extra": "^9.0.13",
|
|
35
35
|
"@types/jest": "^27.4.1",
|
|
36
36
|
"@types/node": "^17.0.25",
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"watch": "tsc --watch",
|
|
49
49
|
"prepare": "npm run build"
|
|
50
50
|
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"next": "*"
|
|
53
|
-
},
|
|
54
51
|
"repository": {
|
|
55
52
|
"type": "git",
|
|
56
53
|
"url": "git+https://github.com/netlify/next-runtime.git"
|
|
@@ -22,11 +22,10 @@ const exists = async (relativePath) => {
|
|
|
22
22
|
let idx = 0
|
|
23
23
|
|
|
24
24
|
const handler = async (req, context) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// }
|
|
25
|
+
if (!Deno.env.get('NETLIFY_DEV')) {
|
|
26
|
+
// Only run in dev
|
|
27
|
+
return
|
|
28
|
+
}
|
|
30
29
|
|
|
31
30
|
let middleware
|
|
32
31
|
// Dynamic imports and FS operations aren't allowed when deployed,
|