Skip to content

Commit

Permalink
never run next in firebase function in dev mode
Browse files Browse the repository at this point in the history
- related to vercel#8893
  • Loading branch information
maerzhase committed Feb 9, 2021
1 parent 8319267 commit 8b7f134
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/with-firebase-hosting/firebaseFunctions.js
Expand Up @@ -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,
},
Expand Down

0 comments on commit 8b7f134

Please sign in to comment.