From 8b7f134ee52a995d68f706dce2cbc9fb0f359f8f Mon Sep 17 00:00:00 2001 From: maerzhase Date: Tue, 9 Feb 2021 11:07:23 +0100 Subject: [PATCH] never run next in firebase function in dev mode - related to #8893 --- examples/with-firebase-hosting/firebaseFunctions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/with-firebase-hosting/firebaseFunctions.js b/examples/with-firebase-hosting/firebaseFunctions.js index 9241139d16f4..3d8c8a5a8e19 100644 --- a/examples/with-firebase-hosting/firebaseFunctions.js +++ b/examples/with-firebase-hosting/firebaseFunctions.js @@ -2,11 +2,10 @@ const { join } = require('path') const { https } = require('firebase-functions') const { default: next } = require('next') -const isDev = process.env.NODE_ENV !== 'production' const nextjsDistDir = join('src', require('./src/next.config.js').distDir) const nextjsServer = next({ - dev: isDev, + dev: false, conf: { distDir: nextjsDistDir, },