diff --git a/package.json b/package.json index 1811924..64cd3be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "voltranjs", - "version": "1.1.6", + "version": "1.1.7", "main": "src/index.js", "author": "Hepsiburada Technology Team", "bin": { diff --git a/src/render.js b/src/render.js index 3518e6f..a1abb70 100644 --- a/src/render.js +++ b/src/render.js @@ -79,8 +79,9 @@ export default async (req, res) => { .observe(Date.now() - res.locals.startEpoch); } else { const voltranEnv = appConfig.voltranEnv || 'local'; + const previewEnvControl = voltranEnv !== 'prod' || voltranEnv !== 'production'; - if (voltranEnv !== 'prod' && isPreviewQuery) { + if (previewEnvControl && isPreviewQuery) { res.status(statusCode).html(Preview([fullHtml].join('\n'))); } else { res