From 1f971d0ec72ea1ee2b00c8d49d209117782ba4d9 Mon Sep 17 00:00:00 2001 From: yongguolong <39215563+yongguolong@users.noreply.github.com> Date: Wed, 24 Mar 2021 10:57:48 +0800 Subject: [PATCH] Update index.md --- source/express/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/express/index.md b/source/express/index.md index ee80dff..b75a4db 100644 --- a/source/express/index.md +++ b/source/express/index.md @@ -21,7 +21,7 @@ var app = express(); // view engine setup app.engine('art', require('express-art-template')); -app.set('view', { +app.set('view options', { debug: process.env.NODE_ENV !== 'production' }); app.set('views', path.join(__dirname, 'views'));