Skip to content

Commit 9baf979

Browse files
authored
feat: only run next-dev middleware in dev (#1582)
1 parent b9b3365 commit 9baf979

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/runtime/src/templates/edge/next-dev.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ const exists = async (relativePath) => {
2222
let idx = 0
2323

2424
const handler = async (req, context) => {
25-
// Uncomment when CLI update lands
26-
// if (!Deno.env.get('NETLIFY_DEV')) {
27-
// // Only run in dev
28-
// return
29-
// }
25+
if (!Deno.env.get('NETLIFY_DEV')) {
26+
// Only run in dev
27+
return
28+
}
3029

3130
let middleware
3231
// Dynamic imports and FS operations aren't allowed when deployed,

0 commit comments

Comments
 (0)